mirror of https://github.com/OCA/web.git
Improved description in module manifest and in README
parent
328f9736ee
commit
ad2e3412fe
|
@ -46,6 +46,10 @@ New option
|
|||
``limit`` *int* (Default: openerp default value is ``7``)
|
||||
|
||||
Number of displayed record in drop-down panel
|
||||
|
||||
``search_more`` *boolean*
|
||||
|
||||
Used to force disable/enable search more button.
|
||||
|
||||
``field_color`` *string*
|
||||
|
||||
|
@ -91,7 +95,7 @@ Example
|
|||
Your XML form view definition could contain::
|
||||
|
||||
...
|
||||
<field name="partner_id" options="{'limit': 10, 'create': false, 'create_edit': false, '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'}}"/>
|
||||
...
|
||||
|
||||
Note
|
||||
|
|
|
@ -12,12 +12,16 @@ Add new options for many2one and many2manytags field:
|
|||
- create_edit: true/false -> disable "create and edit" entry in dropdown panel
|
||||
- limit: 10 (int) -> change number of selected record return in dropdown panel
|
||||
- m2o_dialog: true/false -> disable quick create M20Dialog triggered on error.
|
||||
- search_more: true/false -> force disable/enable search more button.
|
||||
- field_color -> define the field used to define color.
|
||||
- colors -> link field values to a HTML color.
|
||||
|
||||
|
||||
Example:
|
||||
--------
|
||||
|
||||
``<field name="partner_id" options="{'limit': 10, 'create': false,
|
||||
'create_edit': false}"/>``
|
||||
'create_edit': false, 'field_color':'state', colors:{'active':'green'}}"/>``
|
||||
|
||||
Note:
|
||||
-----
|
||||
|
|
Loading…
Reference in New Issue