3
0
Fork 0

Merge PR #2824 into 16.0

Signed-off-by dreispt
16.0
OCA-git-bot 2024-05-26 08:07:54 +00:00
commit 3c843b80db
1 changed files with 6 additions and 4 deletions

View File

@ -13,7 +13,7 @@ in the field's options dict
Whether to display the many2one dialog in case of validation error.
``limit`` *int* (Default: openerp default value is ``7``)
``limit`` *int* (Default: odoo default value is ``8``)
Number of displayed record in drop-down panel
@ -61,7 +61,7 @@ If you disable one option, you can enable it for particular field by setting "cr
Whether to display the many2one dialog in case of validation error for all fields in the odoo instance.
``web_m2x_options.limit`` *int* (Default: openerp default value is ``7``)
``web_m2x_options.limit`` *int* (Default: odoo default value is ``8``)
Number of displayed record in drop-down panel for all fields in the odoo instance
@ -86,8 +86,10 @@ To add these parameters go to Configuration -> Technical -> Parameters -> System
Example
~~~~~~~
Your XML form view definition could contain::
Your XML form view definition could contain:
.. code-block:: xml
...
<field name="partner_id" options="{'limit': 10, 'create': false, 'create_edit': false, 'search_more':true 'field_color':'state', 'colors':{'active':'green'}}"/>
<field name="partner_id" options="{'limit': 10, 'create': false, 'create_edit': false, 'search_more': true, 'field_color':'state', 'colors':{'active':'green'}}"/>
...