diff options
| author | Christophe Matthieu <chm@odoo.com> | 2017-03-14 17:34:14 +0100 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2017-04-11 19:44:38 +0200 |
| commit | 5e91027a86217e440608ed80f1da5d6f82881e61 (patch) | |
| tree | 7be95a4c335edbea1449df4910bdc8fd7da94900 /addons/web/static/src/js/fields | |
| parent | 6e6b6ab5f7d343de9bc969f3bcb668ffbd750572 (diff) | |
[FIX] web: form view must load views for x2many without inline tree arch
* Load views before loading data.
* Load the view used by the mode (by default use kanban for mobile)
* Add attribute useSubview on the widget to load view of the related model
Diffstat (limited to 'addons/web/static/src/js/fields')
| -rw-r--r-- | addons/web/static/src/js/fields/relational_fields.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/addons/web/static/src/js/fields/relational_fields.js b/addons/web/static/src/js/fields/relational_fields.js index 1857241d85b..408b4c5a3ea 100644 --- a/addons/web/static/src/js/fields/relational_fields.js +++ b/addons/web/static/src/js/fields/relational_fields.js @@ -509,6 +509,11 @@ var FieldX2Many = AbstractField.extend({ }), /** + * useSubview is used in form view to load view of the related model of the x2many field + */ + useSubview: true, + + /** * @override */ init: function (parent, name, record, options) { |
