711ec4a9e128bc25b5f71508fa211396b82ca34f
Current behavior: When a reward is applied on an order containing different product with different taxes, the rewarded is divided in multiple lines (one per tax) This cause issue when calling, the `_updateRewardLines` method. Because it will consider each line as a full reward, and therefore will apply the reward multiple times even though the reward is only applied once. Steps to reproduce: - Create a reward with a discount of 5$ in exchange of 100 points - The reward should give 1 point per 1$ spent - Create a product with a price of 100$ and a tax of 10% - Create a product with a price of 100$ and no tax - Open the POS and add the 2 products to the order - Select a customer, and click the reward button - The reward will be applied 2 times (4 reward lines are created) opw-3583174 closes odoo/odoo#145759 X-original-commit: 8214322a0f06d74005c46d2623972f6eb393cc08 Signed-off-by: Joseph Caburnay (jcb) <jcb@odoo.com> Signed-off-by: Robin Engels (roen) <roen@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%