Syncing from upstream OCA/e-commerce (19.0) - #1003
Merged
Merged
Conversation
Avoid replacing `website_ids` from the `website_id` inverse. In this addon, `website_ids` is the source of truth and `website_id` is kept as a computed compatibility field containing the first assigned website. The previous inverse replaced the full `website_ids` relation with the single `website_id` value. This could silently drop website assignments when editing `website_ids` or when legacy code wrote directly on `website_id`. Make the inverse non-destructive by adding the written `website_id` to `website_ids` instead of replacing the whole relation. TT61624
…to product snippets Dynamic product snippets, such as alternative products, build their product domain through website.website_domain(). This only takes website_id into account by default, so products assigned to the current website through website_ids were not shown. Apply the existing multi_website_domain context when products are searched for snippets, and clear it again before rendering product values to avoid leaking that product-specific domain to other models rendered later in the same flow. TT62939
Currently translated at 100.0% (7 of 7 strings) Translation: e-commerce-17.0/e-commerce-17.0-website_sale_product_multi_website Translate-URL: https://translation.odoo-community.org/projects/e-commerce-17-0/e-commerce-17-0-website_sale_product_multi_website/it/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
bt_gitbot