b31a6aec1c10d1842690467bb7394bc8189622d9
The whole contextual price of products relies on multiple context keys: * uom * pricelist * quantity * date The related logic has already been partly removed/deprecated on products, but the computation of discounts for events/event booths are still relying on that logic, though imperfectly. This commit makes sure this hacky logic (relying on those contextual keys) is as clear and reliable as possible. We factorize and harmonize the remaining use cases, with a dedicated constant and specific methods, making sure: * currency conversion * price & discount computations are coherent, while clearly explaining that it should not be used for any new feature/logic/code. We also restrict context updates as much as possible (there won't be any discount when the pricelist is configured to hide the discount from the customer) closes odoo/odoo#123848 Signed-off-by: Victor Feyens (vfe) <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%