[IMP] web: added option model_field to the reference field.

model_field: name of the FieldMany2One('ir.model') containing the model of the records that can be selected. If its value is different from False, the select will not be displayed.

The purpose of adding this option is to allow the creation of a reference field having its model defined in another field (Many2One).

Task-2195019
This commit is contained in:
Francois (fge)
2020-12-11 09:11:11 +00:00
committed by Yannick Tivisse
parent 848c7eb464
commit cc67988241
5 changed files with 205 additions and 25 deletions
+5
View File
@@ -2275,6 +2275,11 @@ reference (FieldReference)
- Supported field types: *char, reference*
Options:
- model_field: name of a FieldMany2One('ir.model') containing the model of the records that can be selected.
When this option is set, the select part of the FieldReference isn't displayed.
Client actions
==============