8fe7229e1984811f3456dbf502cb03fba879e180
opw-1916064 Have a sales order line on which you decrease the quantity. Before, this commit, the warning message that says to update the delivery order did not show. This was because, the onchange in the python side compared the new quantity against the saved one, and did not find any difference. This is caused by the onchange itself, which, in a o2m setting, received from the JS, the changed order (already containing the changed line) and only then proceeded to the onchange of the line. The first operation wrote onto _origin the new line value, which corresponded subsequently to the new value. After this commit, we compare the real value explicitly retrieved from the database to the one just entered by the user as an onchange. The warning message works as expected. Long story short, _origin in an onchange doesn't guarantee to yield persisted values in all cases. closes odoo/odoo#29582
…
…
…
…
…
…
…
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, Purchase Management, ...
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.
Then follow the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%