70f99448d5198d5582ea3411e694dca10a602286
As quant from inventory loss location balances real quantity, it could be really hazardous to able user to modify it. That said, modify it now has no effect. So, with this commit, we exit the quant write method in case of user tries to modify it manually if the quant location is inventory loss, and we inform the user he can't modify it. We could set the field as readonly in this case, but it's clearer for user to inform him/her in case he/she tries to modify the quant than set the field as readonly and take the risk user don't understand why he/she can modify some quant and can't modify some other. It would be preferabler to raise an UserError in the write than do nothing in the write and return a warning in the onchange, but in case we raise an error in the write method, user side the field is still in edit mode and then, every time user clicks somewhere but on Discard, it will raise the error again and it's not convenient for the user. Task #2035465
…
…
…
…
…
…
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%