From b67331fc18109d013624e6c11ba52d0c61c17975 Mon Sep 17 00:00:00 2001 From: Dharmraj Jhala Date: Wed, 4 Apr 2018 23:01:47 +0530 Subject: [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. --- doc/reference/javascript_reference.rst | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'doc/reference/javascript_reference.rst') diff --git a/doc/reference/javascript_reference.rst b/doc/reference/javascript_reference.rst index b77aa9f5612..d13b2b86412 100644 --- a/doc/reference/javascript_reference.rst +++ b/doc/reference/javascript_reference.rst @@ -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 + + + - 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. -- cgit v1.2.3