08138a332244c93e8d031151048e4e89f33d7e66
Before this commit when multiple instances of the same product were selected in a PoS session, `can_be_merged_with` checked if they had the same price before merging them in a single order line. However the order line prices were not rounded. In the case of a floating point error in order line price calculation, this behavior resulted in multiple order lines for the same product. Steps to reproduce the issue: 1. Create a product 2. In the pricelist, create a formula of -10% discount based on cost, and set the cost as 136.35 $ 3. Open a POS session, add the product multiple times 4. The products are not combined in one group, each creates their own order line To fix this issue, we need to round the order line prices in this function. opw-2854304 closes odoo/odoo#96410 X-original-commit: 254521d302b31acd5b6f6cfbf49c184035b30eb0 Signed-off-by: Masereel Pierre <pim@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%