diff --git a/web_m2x_options/README.rst b/web_m2x_options/README.rst index d4704dec..0fa46e05 100644 --- a/web_m2x_options/README.rst +++ b/web_m2x_options/README.rst @@ -82,11 +82,16 @@ If you disable one option, you can enable it for particular field by setting "cr Number of displayed records in drop-down panel for all fields in the odoo instance +``web_m2x_options.search_more`` *boolean* (Default: default value is ``False``) + + Whether the field should always show "Search more..." entry or not. + To add these parameters go to Configuration -> Technical -> Parameters -> System Parameters and add new parameters like: - web_m2x_options.create: False - web_m2x_options.create_edit: False - web_m2x_options.limit: 10 +- web_m2x_options.search_more: True Example diff --git a/web_m2x_options/static/src/js/form.js b/web_m2x_options/static/src/js/form.js index f5823623..8459f25f 100644 --- a/web_m2x_options/static/src/js/form.js +++ b/web_m2x_options/static/src/js/form.js @@ -10,7 +10,8 @@ openerp.web_m2x_options = function (instance) { var OPTIONS = ['web_m2x_options.create', 'web_m2x_options.create_edit', - 'web_m2x_options.limit',]; + 'web_m2x_options.limit', + 'web_m2x_options.search_more',]; instance.web.form.FieldMany2One = instance.web.form.FieldMany2One.extend({