forked from Techsystech/web
Improved description in module manifest and in README
parent
d53b4e20d2
commit
bf8b06b076
|
@ -47,6 +47,10 @@ New options
|
||||||
|
|
||||||
Number of displayed record in drop-down panel
|
Number of displayed record in drop-down panel
|
||||||
|
|
||||||
|
``search_more`` *boolean*
|
||||||
|
|
||||||
|
Used to force disable/enable search more button.
|
||||||
|
|
||||||
``field_color`` *string*
|
``field_color`` *string*
|
||||||
|
|
||||||
A string to define the field used to define color.
|
A string to define the field used to define color.
|
||||||
|
@ -90,7 +94,7 @@ Example
|
||||||
Your XML form view definition could contain::
|
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
|
Note
|
||||||
|
|
|
@ -3,6 +3,39 @@
|
||||||
{
|
{
|
||||||
"name": 'web_m2x_options',
|
"name": 'web_m2x_options',
|
||||||
"version": "0.1",
|
"version": "0.1",
|
||||||
|
"description": """
|
||||||
|
=====================================================
|
||||||
|
Add new options for many2one and many2manytags field:
|
||||||
|
=====================================================
|
||||||
|
|
||||||
|
- create: true/false -> disable "create" entry in dropdown panel
|
||||||
|
- 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, 'field_color':'state', colors:{'active':'green'}}"/>``
|
||||||
|
|
||||||
|
Note:
|
||||||
|
-----
|
||||||
|
|
||||||
|
If one of those options are not set, many2one field uses default many2one
|
||||||
|
field options.
|
||||||
|
|
||||||
|
Thanks to:
|
||||||
|
----------
|
||||||
|
|
||||||
|
- Nicolas JEUDY <njeudy@tuxservices.com>
|
||||||
|
- Valentin LAB <valentin.lab@kalysto.org>
|
||||||
|
|
||||||
|
""",
|
||||||
"depends": [
|
"depends": [
|
||||||
'base',
|
'base',
|
||||||
'web',
|
'web',
|
||||||
|
|
Loading…
Reference in New Issue