From ce4713cd0e790a88daefd727b5e4ebad4df0e2f0 Mon Sep 17 00:00:00 2001 From: Sarah Van Bogaert Date: Wed, 27 Mar 2019 13:14:56 +0000 Subject: [IMP] web: allow multiple fields in form views MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This feature was already working in the actual version of Odoo but it is now tested. The following features are supported: - When the value of one widget is modified, the other ones change accordingly - The modifiers 'invisible' and 'readonly' are applied correctly if they differ between widgets. However, the modifiers 'required' must be equal for the several fields, otherwise the behavior is not guaranteed. closes odoo/odoo#32158 Signed-off-by: Géry Debongnie (ged) --- doc/reference/views.rst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'doc/reference') diff --git a/doc/reference/views.rst b/doc/reference/views.rst index 7e22a3b4834..17a7c5911e7 100644 --- a/doc/reference/views.rst +++ b/doc/reference/views.rst @@ -469,7 +469,10 @@ system. Available semantic components are: ``field`` renders (and allow edition of, possibly) a single field of the current - record. Possible attributes are: + record. Using several times a field in a form view is supported and the fields + can receive different values for modifiers 'invisible' and 'readonly'. However, + the behavior is not guaranteed when several fields exist with different values + for modifier 'required'. Possible attributes of the field node are: ``name`` (mandatory) the name of the field to render -- cgit v1.2.3