From b22894cc21a93876acf070b1a95ce0740d570a4a Mon Sep 17 00:00:00 2001 From: ecino Date: Fri, 17 Apr 2015 14:08:57 +0200 Subject: [PATCH] Add help in README how to set default value for search_more option. --- web_m2x_options/README.rst | 5 +++++ web_m2x_options/static/src/js/form.js | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/web_m2x_options/README.rst b/web_m2x_options/README.rst index 01b2aa5e..48a3515a 100644 --- a/web_m2x_options/README.rst +++ b/web_m2x_options/README.rst @@ -81,11 +81,16 @@ If you disable one option, you can enable it for particular field by setting "cr Number of displayed record 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 d3483e5f..3cfb88f7 100644 --- a/web_m2x_options/static/src/js/form.js +++ b/web_m2x_options/static/src/js/form.js @@ -9,8 +9,9 @@ openerp.web_m2x_options = function (instance) { _lt = instance.web._lt; var OPTIONS = ['web_m2x_options.create', - 'web_m2x_options.create_edit', - 'web_m2x_options.limit',]; + 'web_m2x_options.create_edit', + 'web_m2x_options.limit', + 'web_m2x_options.search_more',]; instance.web.form.FieldMany2One = instance.web.form.FieldMany2One.extend({