0d0546c45589d55d6b44c5efee41c5cb268c85a0
price_subtotal for reward
Steps to reproduce: ------------------- - create a product that costs 100 with 10% tax excluded; - create a discount program to obtain 10% discount on the order; - configure website to display tax excluded; - go to ecommerce and create a cart with the product; - apply the discount program. Issue: ------ The price shown for the discount is tax included (i.e. 11) and not tax excluded (i.e. 10). Cause: ------ Set the field `price_unit` during `new` will trigger a chain of compute methods that will falsely modify the value of `price_reduce_taxexcl` (because will modify `price_subtotal`). Solution: --------- Set the value of `price_subtotal`, to compute the `price_reduce_taxexcl` field. In this way, `price_reduce_taxexcl` and `price_reduce_taxinc` can be used if the website displays tax included or not. opw-3302488 closes odoo/odoo#127072 X-original-commit: dd6c01f07c3bf1caa9545108429bf6537a7fef32 Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com> Signed-off-by: Thomas Lefebvre (thle) <thle@odoo.com> Co-authored-by: Feyensv <vfe@odoo.com>
…
…
…
…
…
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%