[FIX] web_m2x_options: fix usage errors

This commit is contained in:
Vincent Hatakeyama
2024-05-15 16:57:26 +02:00
parent 837a066400
commit c8758a1498

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'}}"/>
...