7e24a9547493f6b6ab18e315501dde3231d622ff
Purpose ======= The goal of this contraint is to prevent employees to take a time off when he's not supposed to work (example: after the end of his contract). But, in some conditions (example: we change the contract end date), the number_of_days is not recomputed, and the constraint is raised when unlinking the time off. Move the chunk of code at the validation level, to prevent validating a time off if the employee is not supposed to work. closes odoo/odoo#62337 X-original-commit: c0e082ee1fba7cecc711f724974d79ed65bab29b Signed-off-by: Yannick Tivisse (yti) <yti@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%