-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] sale,website_sale: Display extra prices with taxes included
Steps to reproduce the issue: - Install eCommerce module - Go to Settings - Ensure `Product Prices` is set to 'Tax included' - Create a new Product as storable - Set `Sales Price` to $1.0 and `Customer Taxes` to 10.00 % - Under `Variants` tab add an Attribute with 2 values - Set "Price Extra" to $2.0 to one of the variants - Go to the Shop and select the product Issue: The extra price badge does not include the taxes ($2.0 instead of $2.2), however the final price does. Cause: The price_extra field from ptav (used in the badge) does not include the taxes. However, when calculating the final price, we do first the sum of all prices (including the extra prices) and then apply the taxes. Solution: In the template, for each 'variants', we call `_get_combination_info` to get the variant.price_extra with taxes included/excluded depending the `Product Prices` setting. opw-2669871 closes odoo#81860 X-original-commit: 83c927f Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com> Signed-off-by: Nasreddin Boulif (bon) <bon@odoo.com>
- Loading branch information
Showing
5 changed files
with
60 additions
and
28 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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