diff options
| author | Aaron Bohy <aab@odoo.com> | 2021-03-05 12:55:33 +0000 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2021-03-08 09:35:17 +0000 |
| commit | 6aaa1c07da5fc10004e278d14f9fa05720c96c79 (patch) | |
| tree | 8422a00b30e9689e8cea4d5d5ed4ed36f2a271e8 /doc/reference/javascript_reference.rst | |
| parent | 8127bea147c093aa64ac7d31ebc69e4dcbef6eef (diff) | |
[FIX] web: FieldMany2Many: link/unlink options
Commit [1] altered the way the FieldMany2Many behaves with respect
to 'create' and 'delete' options. Indeed, for many2many fields,
adding or removing records doesn't mean "creating" or "deleting"
records, as it is only about adding/removing records to/from a
relation. This is completely fine and correct.
Unfortunately, a feature has been lost in the process: it is no
longer possible to state that a many2many field should be editable
but should not allow to add (or remove) record to the relation.
This commit fixes the issue by adding two new options: 'link' and
'unlink' for that purpose.
[1] https://github.com/odoo/odoo/commit/c98579d25af01c14df4baf57fb4652f3e7469096
opw~2466213
closes odoo/odoo#67358
Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
Diffstat (limited to 'doc/reference/javascript_reference.rst')
| -rw-r--r-- | doc/reference/javascript_reference.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/reference/javascript_reference.rst b/doc/reference/javascript_reference.rst index 3bc0ce383f6..9e6e208648e 100644 --- a/doc/reference/javascript_reference.rst +++ b/doc/reference/javascript_reference.rst @@ -2182,6 +2182,8 @@ many2many (FieldMany2Many) - create_text: allow the customization of the text displayed when adding a new record + - link: domain determining whether or not records can be added to the relation (default: True). + - unlink: domain determining whether or not records can be removed from the relation (default: True). many2many_binary (FieldMany2ManyBinaryMultiFiles) This widget helps the user to upload or delete one or more files at the same |
