summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js
diff options
context:
space:
mode:
authorRomain Derie <rde@odoo.com>2020-04-03 08:51:05 +0000
committerRomain Derie <rde@odoo.com>2020-04-08 12:15:25 +0000
commitbabbe363b6390fd7cbcc9d9f8db14716e0d2cc02 (patch)
tree4f5865733249713681c415afcec31dafb72fb4a0 /addons/web/static/src/js
parent637a591c056212a1161299a2e587d27def622a7d (diff)
[FIX] website_theme_install: do not write view arch if it was modified
During theme install, theme.ir.ui.view are copied as ir.ui.view for the requested website. During theme update, those already created ir.ui.view will receive the theme.ir.ui.view modifications, including the `arch`, even if it was changed by the user, meaning the user changes would be lost. Here are some examples which will be wiped away when the theme is updated (only if the view is loaded from the theme module): - Changes made from website HTML/CSS/JS editor. - Changes made from website builder e.g. Theme modify footer with XPath and user make changes in footer then user changes will be gone on theme update - Changes made directly in the arch of ir.ui.view in the backend. This commit fixes that behavior by not updating views which were modified by the user. closes odoo/odoo#49224 X-original-commit: 9906e1d403c4e9137a0313c342a455f425e95b8e Signed-off-by: Romain Derie <rdeodoo@users.noreply.github.com> Co-authored-by: Romain Derie <rde@odoo.com> Co-authored-by: Kishan Gajjar <kishanegajjar@gmail.com>
Diffstat (limited to 'addons/web/static/src/js')
0 files changed, 0 insertions, 0 deletions