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

Adding variant to cart sets price to zero when template product's list_price is zero #71257

Open
elsguns opened this issue May 26, 2021 · 0 comments

Comments

@elsguns
Copy link

elsguns commented May 26, 2021

Impacted versions: 13

Steps to reproduce:
1/ Create a product with variants.
2/ Set different prices for the variants on the public pricelist.
2/ Set Sales price of product template to zero.

Current behavior:
The price of the variants is displayed correctly on the product page. It becomes zero though when adding it to the cart.

Expected behavior:
Prices for the variant set on the public pricelist should be kept in the cart.

Video/Screenshot link (optional):

Support ticket number submitted via odoo.com/help (optional):

Code that's causing this is website_sale/models/sale_order.py > _website_product_id_change > line 113 > if pu != 0:

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

No branches or pull requests

1 participant