diff options
| author | Romain Derie <rde@odoo.com> | 2019-02-05 11:56:29 +0000 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2019-02-06 09:49:11 +0000 |
| commit | aef6a5aaed22b250799ce92b5021d240fed9e12e (patch) | |
| tree | f1006d677e14840c17b5fe529214c15c04456e7d /addons/web/static/src/js/views/basic | |
| parent | 530f364547af1cc4ccfa9baa66cd70e564bc62cb (diff) | |
[FIX] website: specific view ID might also change on save
Commit https://github.com/odoo/odoo/commit/29075a8e2c734624cec4f6009185616634f70dea
was written while there was an incorrect behavior related to
multi-website, oe_structure_ID and edit mode in a rare specific case
(see the second commit from this PR for detailed explanation
https://github.com/odoo/odoo/pull/30834).
That rare case was detected in 12.0 since the tour did not work on
master with the new editor (that fixed the incorrect behavior).
Basically, it was COWing the edited view even if only an oe_structure_ID
was touched.
Indeed, when saving a specific view in the HTML editor, we should also
search for its possible new ID as it could change if we also edited its
generic parent. In that case, the view will be copied and then unlinked
to preserve inherit order on the new specific tree.
Diffstat (limited to 'addons/web/static/src/js/views/basic')
0 files changed, 0 insertions, 0 deletions
