4659736fc478b279df26880d860111e1426aeefb
Before this commit, when the employee is generated with the salary configurator, the employee is archived since the employee will not directly start in the company. Even if the employee is archived and the timesheets are generated for this employee based on the global time offs found in the future. The problem is the timesheets cannot be created for archived employees and so a user error is raised. This problem could also happen if the user creates an archived employee. This commit fixes the issue by preventing the timesheets generation when the employee created is archived. When this employee will be updated and active field will be set to True, the timesheets generation will be applied. In the inverse use case, when the user will archive an employee and timesheets generated for the future global time offs will be removed. opw-2887727 opw-2870739 closes odoo/odoo#95644 X-original-commit: 160afba28d88ddd9d84856cc90639586bc2ea7b6 Related: odoo/enterprise#29273 Signed-off-by: Laurent Stukkens (ltu) <ltu@odoo.com> Signed-off-by: Fockedey Martin (mafo) <mafo@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%