a581656b00200439660792ed674e257c8c233b3f
Purpose ======= On a record creation, a valid and user friendly error message is raised when a sql constraint is violated. (Eg: 'The start date must be anterior to the end date'). On a record modification, this is not always the case anymore, since the latest ORM modifications. Eg: Write on a leave with a date_from > date_to, you got the postgreSQL error, which is not understable by a classic human. This is due to the fact that the error is correctly catched and logged, but the result is set into the cache, triggering the execution of computation methods, and calling _validate_fields. It is highly probable that a flush is done in the constraint method (search, read, ...). In that case the postgreSQL error is converted into a ValidationError, with a stringified version of the IntegrityError, and thus is not catched by the check wrapper.
…
…
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%