Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[15.0][OU-FIX] website: unlink view when extract footer copyright company name #4108

Open
wants to merge 1 commit into
base: 15.0
Choose a base branch
from

Conversation

pilarvargas-tecnativa
Copy link
Contributor

cc @Tecnativa TT44794

The duplicate view of website.layout with associated website needs to be removed as in v15 this view should not be duplicated and if not removed it causes inheritance problems which are aggravated when there is more than one website.

@pedrobaeza @chienandalu please review

@pilarvargas-tecnativa pilarvargas-tecnativa force-pushed the 15.0-ou-fix-website-footer_copyright_company_name branch from 472060a to d3ca20b Compare August 25, 2023 09:43
TT44794

The duplicate view of website.layout with associated website needs to
be removed as in v15 this view should not be duplicated and if not
removed it causes inheritance problems which are aggravated when there
is more than one website.
@pilarvargas-tecnativa pilarvargas-tecnativa force-pushed the 15.0-ou-fix-website-footer_copyright_company_name branch from d3ca20b to 0dda87a Compare August 25, 2023 09:53
@@ -36,6 +44,7 @@ def extract_footer_copyright_company_name(env):
or f"Copyright © {website.company_id.name}",
)
main_copyright_view.with_context(website_id=website.id).arch_db = new_arch
_delete_views_recursively(view)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is pretty dangerous, you don't have control at this point of the script about what you're going to delete.

Wouldn't the way to go just changing the inheritance to the new views and the deleting the old ones safely?

@legalsylvain legalsylvain added this to the 15.0 milestone Aug 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants