Odoo 11: Solving chrome browser issues on filter and groupby popups

Indrajaya
2 min readSep 30, 2021

There is a problem when user selects popup and groupby filter on Odoo 12 using certain version of chrome browser (version 89). This problem not only occurs in Odoo 12, but also Odoo 11.

Chrome with version 92 (92.0.4515.131) is also experiencing the same problem. The problem is that the popup disappears when selecting a filter or group based on criteria like in the following video.

Source: https://github.com/odoo/odoo/issues/66848#issuecomment-818031802

The fix as suggested on this link unfortunately only applies to Odoo version 12, but doesn’t apply to Odoo version 11. This is due to a fairly large difference from the JavaScript code that specifically handles filter & groupby popups.

Fortunately, there is a small fix that can be applied to Odoo 11 as described in this link.

If you have an access to Settings page, this trick can be used as a quick wins. Just click the Create button in menu Settings | Technical | User Interface | View. You must access as debug mode to make sure the column in right side shown.

In the Architecture, put this syntax below. Then Save.

<?xml version="1.0"?>
<data name="fix_jquery_chrome89" inherit_id="web.assets_common">
<xpath expr="." position="inside">
<script><![CDATA[ (function(b){var c=b.fix;b.fix=function(){var a=c.apply(this,arguments);"click"===a.type&&-1===a.button&&(a.button=0);return a}})(jQuery.event) ]]>
</script>
</xpath>
</data>

Tadaaa, work like a charm.

I hope, this can solve the issue. Thanks for reading.

--

--