Repository navigation
[19.0][FIX] website_sale_order_type: keep the website sale type - #1373
Open
ivantodorovich wants to merge 1 commit into
Open
ivantodorovich wants to merge 1 commit into
ivantodorovich wants to merge 1 commit into
Conversation
website_sale writes the partner again at checkout and on login, which recomputed the order type from the partner and dropped the website one.
Contributor
|
Hi @pilarvargas-tecnativa, |
Ricardoalso
approved these changes
Oct 22, 2026
yankinmax
approved these changes
Oct 23, 2026
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.
When a sale order type is set on the website, website orders lose it as soon as website_sale writes the partner again on the order (address confirmation at checkout, login with an anonymous cart). This recomputes
type_idfrom the partner, and when the partner has no type it falls back to the first type by sequence.This keeps the website sale type when recomputing the type of an order linked to a website that has one. Orders without a website keep the current behavior.