diff options
| author | Christophe Matthieu <chm@odoo.com> | 2017-03-07 16:29:09 +0100 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2017-04-11 19:44:38 +0200 |
| commit | 7a1d7cb2414f708a1d9f167412747bf98e2654e7 (patch) | |
| tree | 0e3ef361561fe62ad24a83be361da3e702001dad /addons/web/static/src/js/fields/basic_fields.js | |
| parent | 86a87aa8b0dde2237cfe1bb769724e8ed269b62e (diff) | |
[FIX] web: allow edition of one2many with widget many2many
It is quite rare, but it happens that a one2many field has to be edited
with a many2many widget: it allows the fact that records are directly
created, and only later linked to the main record. But the BasicModel
only used the field type to determine which commands it had to send.
In this commit, we introduce a magic flag _forceM2MLink, which, if set
to true, tells the BasicModel to treat the field as a many2many.
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions
