diff options
| author | Xavier Morel <xmo@odoo.com> | 2020-07-17 08:38:21 +0000 |
|---|---|---|
| committer | Raphael Collet <rco@odoo.com> | 2020-07-20 11:42:58 +0000 |
| commit | b3761a8cba6f24bbcb4b35f14e076965d1210f69 (patch) | |
| tree | e610ddb26702da9f7d822e19ae2fabc02137c1f1 /odoo/addons/test_testing_utilities/ir.model.access.csv | |
| parent | 8f09ef294a6aa7a845114474658cf0b4f32c46e1 (diff) | |
[FIX] core: fix handling of removals in sub-o2m
Issue is specifically in the case of an onchange removing a record in
an o2m in an o2m (so a sub-o2m) if loading an *existing* record in the
SSF: since the server pretty much only returns a REMOVE_ALL followed
by the records to keep or create, conserving the removal information
requires diffing the value currently stored in the form and the result
fo the onchange.
Diff which was properly done for top-level o2ms, but not for the ones
below that (apparently forgot this bit when improving support for
nested o2ms earlier this year).
X-original-commit: 177d009541cca589c6ebb85fc051b893ec001536
Diffstat (limited to 'odoo/addons/test_testing_utilities/ir.model.access.csv')
| -rw-r--r-- | odoo/addons/test_testing_utilities/ir.model.access.csv | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/odoo/addons/test_testing_utilities/ir.model.access.csv b/odoo/addons/test_testing_utilities/ir.model.access.csv index c060e4b77e9..5f7c8a1777c 100644 --- a/odoo/addons/test_testing_utilities/ir.model.access.csv +++ b/odoo/addons/test_testing_utilities/ir.model.access.csv @@ -20,6 +20,7 @@ access_test_testing_utilities_onchange_count_sub,access_test_testing_utilities_o access_o2m_readonly_subfield_parent,access_o2m_readonly_subfield_parent,model_o2m_readonly_subfield_parent,,1,1,1,1 access_o2m_readonly_subfield_child,access_o2m_readonly_subfield_child,model_o2m_readonly_subfield_child,,1,1,1,1 access_test_testing_utilities_req_bool,access_test_testing_utilities_req_bool,model_test_testing_utilities_req_bool,,1,0,0,0 +access_o2m_changes_parent,access_o2m_changes_parent,model_o2m_changes_parent,base.group_user,1,0,0,0 access_o2m_changes_children,access_o2m_changes_children,model_o2m_changes_children,base.group_user,1,0,0,0 access_o2m_changes_children_lines,access_o2m_changes_children_lines,model_o2m_changes_children_lines,base.group_user,1,0,0,0 access_ttu_product,access_ttu_product,model_ttu_product,base.group_user,1,0,0,0 |
