[IMP] web: Allow user to set custom 'create_text' for x2m fields
For x2many relational fields(of type kanban), we shoud be able to set custom label for 'Create / Add' button by adding 'create_text' node option on particual field from xml. Right now, 'create_text' is only handled for many2many fields, preventing users to set custom label for one2many fields. This commit allows users to set Create Button label for both m2m and o2m fields.
This commit is contained in:
committed by
Géry Debongnie
parent
fef6d7967f
commit
b67331fc18
@@ -1782,6 +1782,14 @@ Relational fields
|
||||
|
||||
- Supported field types: *one2many*
|
||||
|
||||
Options:
|
||||
|
||||
- create_text: a string that is used to customize the 'Add' label/text.
|
||||
|
||||
.. code-block:: xml
|
||||
|
||||
<field name="turtles" options="{\'create_text\': \'Add turtle\'}">
|
||||
|
||||
- statusbar (FieldStatus)
|
||||
This is a really specialized widget for the form views. It is the bar on top
|
||||
of many forms which represent a flow, and allow selecting a specific state.
|
||||
|
||||
Reference in New Issue
Block a user