mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[ADD] web_widget_many2one_simple
This commit is contained in:
committed by
OCA-git-bot
parent
64f34f7c73
commit
575daf2e68
11
web_widget_many2one_simple/readme/USAGE.rst
Normal file
11
web_widget_many2one_simple/readme/USAGE.rst
Normal file
@@ -0,0 +1,11 @@
|
||||
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' ...
|
||||
Reference in New Issue
Block a user