Skip to content

Commit

Permalink
[REV] website: Revert preservation of website specific views
Browse files Browse the repository at this point in the history
This patch was needed for v12 for the BS3 > BS4 conversion of website specific views in
previous version, but now that there's no need of such conversion, standard code is OK for
automatically recycling of specific views if there are upstream changes.
  • Loading branch information
pedrobaeza committed Jun 30, 2020
1 parent 8c3353c commit dd2f051
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions addons/website/models/ir_ui_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,14 +165,7 @@ def unlink(self):
view.with_context(website_id=website.id).write({'name': view.name})

specific_views = self.env['ir.ui.view']

# OpenUpgrade: force a False condition to never enter this code block.
# This is needed because the update process could correctly unlink
# website-agnostic views, but we don't want the website-specific
# equivalents to be removed during the migration.
if False and self and self.pool._init:
# OpenUpgrade: end of modification

if self and self.pool._init:
for view in self.filtered(lambda view: not view.website_id):
specific_views += view._get_specific_views()

Expand Down

0 comments on commit dd2f051

Please sign in to comment.