Skip to content

[19.0][FIX] website_sale_order_type: keep the website sale type - #1373

Open
ivantodorovich wants to merge 1 commit into
OCA:19.0from
camptocamp:19.0-fix-website_sale_order_type-keep-type
Open

ivantodorovich wants to merge 1 commit into
OCA:19.0from
camptocamp:19.0-fix-website_sale_order_type-keep-type

Conversation

@ivantodorovich

Copy link
Copy Markdown
Contributor

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_id from 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.

website_sale writes the partner again at checkout and on login, which
recomputed the order type from the partner and dropped the website one.
@OCA-git-bot

Copy link
Copy Markdown
Contributor

Hi @pilarvargas-tecnativa,
some modules you are maintaining are being modified, check this out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants