Browse Source

Merge pull request #380 from lfreeke/8.0-web-search-autocomplete-prefetch-base_view

[ADD] disable base_view search for better performance
pull/488/head
Dave Lasley 8 years ago
committed by GitHub
parent
commit
a86f22e6f7
  1. 1
      web_search_autocomplete_prefetch/__openerp__.py
  2. 16
      web_search_autocomplete_prefetch/views/base_view.xml

1
web_search_autocomplete_prefetch/__openerp__.py

@ -16,6 +16,7 @@
], ],
"data": [ "data": [
'views/templates.xml', 'views/templates.xml',
'views/base_view.xml',
], ],
"installable": True, "installable": True,
} }

16
web_search_autocomplete_prefetch/views/base_view.xml

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<openerp>
<data>
<record model="ir.ui.view" id="view_view_search_autocomplete">
<field name="model">ir.ui.view</field>
<field name="inherit_id" ref="base.view_view_search"/>
<field name="arch" type="xml">
<field name="name" position="attributes">
<attribute name="options">{'web_search_autocomplete_prefetch.disable': true}</attribute>
</field>
</field>
</record>
</data>
</openerp>
Loading…
Cancel
Save