863c5090f09bfffc2867717ed8b3c99b05a5eb9c
onchange_quantity computed
Instead of having to repeatedly manually call `onchange_quantity` at different points in the code, it is better to have it be computed instead. - Logic is left unchanged, - onchange calls from other methods are removed, and - tests are adjusted to properly handle compute. I.e. remove 'date_planned': datetime.today().strftime(DEFAULT_SERVER_DATETIME_FORMAT) from when PO lines are created since this sometimes resulted in inconsistent date_planned values for PO line and the PO date_order (by 1 sec), which could lead to inconsistently created 'date_deadline' values for stock_moves' created by PO line qty changes. Issue previously didn't exist because onchange was not always called. Part of Task: 2695116 (to avoid adding more onchange calls for new feature) Part-of: odoo/odoo#87656
…
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%