summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_renderer.js
diff options
context:
space:
mode:
authorfja-odoo <fja@odoo.com>2020-05-05 15:29:02 +0000
committerfja-odoo <fja@odoo.com>2020-06-08 17:23:59 +0000
commit061ff011df43e602d06e0c680840e1e61cc648a1 (patch)
tree4b391cbe34b4635c76de98125d2551a7ff6c84e1 /addons/web/static/src/js/views/basic/basic_renderer.js
parent54c828bcbaf293fe0c0e7b6a3c3649dcaa518428 (diff)
[IMP] base, website: fix prewebsite specific views
Things to know about specific views: Since the introduction of website specific views, we can have multiple views that are related to a website (specific views). These views have no xml_id as it is only set on the original view (generic view). We rely on the view's key to identify related views as it is the same for all specific views of a generic view. Also the key is equals to the xml_id. When a generic view is updated, we will check if the specific views have the same values as the generic view. If it is the case, the value that are the same are considered updatable and are updated on both the generic and specific view. Else these are considered as noupdate. When a generic view is created we will check if the potential parent generic view has specific views. If it is the case we will create a copy of the created view for each specific view. The issue: The method that checks if a created/updated view has specific views is located in website. When we update a module, each modules are initialized and updated in a specific order. If a generic view that has specific views located in a module loaded before website this view's specific views will not be updated/created as the method does not exist. This issue is mainly affecting portal views at the moment. The solution: For write: We now COW(copy on write) the views in base module, meaning this will apply to all qweb views that are duplicated and not only the website specific ones. For create: We will create the generic view as before but wait until we have updated all the modules to gather all generic views that are supposed to have a specific view but don't and create the specific views. This will result in a change of behavior being that if a specific view that have a parent is deleted it will be recreated on update (same behavior as a generic view). closes odoo/odoo#52629 X-original-commit: b1a90ee2bb441aa52e3cf4607c43fb464b55b1d7 Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com> Signed-off-by: fja-odoo <fja-odoo@users.noreply.github.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_renderer.js')
0 files changed, 0 insertions, 0 deletions