3330215c4de535d05a8ae77889fbc0f1f38a5076
Steps to reproduce: - Create an invoice with a product. - Confirm it. - Go to the product and select a UoM of another UoM category. Issue: Traceback Cause: https://github.com/odoo/odoo/blob/51ead4b2d52e0faec2065b475dac7f376328c425/addons/uom/models/uom_uom.py#L155-L159 Solution: Add a constraint to prevent the user from changing the UoM category of a product if it is used in a posted invoice. At the same time, a similar constraint is added on `account.move.line` to make sure the line's uom remains consistent with its product. opw-3039419 closes odoo/odoo#110102 X-original-commit: aeb798d01aafee5fcaa8614f7e2b39a380d0b6ce Related: odoo/enterprise#35887 Signed-off-by: William André (wan) <wan@odoo.com> Signed-off-by: John Laterre (jol) <jol@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%