forked from Techsystech/web
12 lines
389 B
ReStructuredText
12 lines
389 B
ReStructuredText
You need to declare the usage of the new widget as follows:
|
|
``<field name="xxx" widget="many2one_simple" options="...">``
|
|
|
|
Example:
|
|
~~~~~~~~
|
|
|
|
.. code:: xml
|
|
|
|
<field name="partner_id" widget="many2one_simple" regex="^1\d*" options="{"search": { "field": "name", "oper": "ilike" }}"/
|
|
|
|
** Only allows search by id's that starts with '1' ...
|