-
- Downloads
[FIX] website_sale: correctly use fiscal position to compute price
Before this commit, if the user had a fiscal position for his current country,
it wouldn't be used to compute the price of the products on the eshop.
Note that:
- the price would be correct on the cart, as those prices are coming from a
sale order which correctly retrieves the fiscal position.
- if the fiscal position is directly set on the partner, prices are correct
on the eshop
Step to reproduce:
- Set Belgium as country on Portal user's partner
- Create a 0% tax and a 15% tax
- Create a fiscal position mapping 15% tax to 0% tax for Belgium country
automatically detected
- Create a product with 1000$ price and 15% tax set on it
- Enable pricelist and select tax included in settings
- Create a pricelist for Belgium and add a rule for the product you created
to set a fixed price of 500$
- Now visit eshop with Portal user
The test product show 575$ instead of 500$ in eshop, while it will correctly
show 500$ in cart.
opw-2423215
closes odoo/odoo#64477
Signed-off-by:
Jérémy Kersten (jke) <jke@openerp.com>
Please register or sign in to comment