summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_model.js
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2018-08-16 11:31:11 +0200
committerqsm-odoo <qsm@odoo.com>2018-09-30 19:55:17 +0200
commitdd139948f0049b3676b859495ba9b2d43436f9c1 (patch)
tree7356ad7665f3f9e3250a052b893b4422dbc43664 /addons/web/static/src/js/views/basic/basic_model.js
parent4f15c939a78b4f1f20377d62e89157dfe628d910 (diff)
[IMP] web_editor: use inheriting views for oe_structure content
Before this commit, when using the website editor, modifications were saved in place in the original view. The view was also marked as non updatable so that when an user migrates its database, he does not lose its modifications. The problem with this system is that users were able to keep their modifications at the cost of having views which are not up-to-date with the latest odoo updates. Now, the views' content which is inside an oe_structure element is saved in an inheriting view instead of the original view. The original view is not marked as non updatable anymore. Note 1: we only consider elements with the 'oe_structure' class which also have an id containing the 'oe_structure' string. Note 2: if a non oe_structure but editable content is edited, the original view is still marked as non updatable (however, with the new multi-website feature, this may not be necessary as the edited view will be duplicated to be website-specific... we may want to disable the behavior in a future update).
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_model.js')
0 files changed, 0 insertions, 0 deletions