d7b34c9d727047971d86f48f5fbaba7aee90906f
In Odoo, incoming contracts are defined as having state == 'draft' and kanban_state == 'done'. Currently, the employee contract calendars are synced when incoming contracts are created, and incoming contracts' calendars are changed. However, in many cases the incoming contracts are made for the future and do not reflect the current employee's working schedule. This causes there to be a calendar mismatch whenever incoming contracts are created/updated, despite being set only for the future. This fix checks the contracts_count field on the employee before syncing the calendar, since the only time an incoming contract should reflect the *current* calendar is if it's the only contract for the employee. closes odoo/odoo#142142 X-original-commit: 885f554c80028539415c294120c379ded33cd9ae Signed-off-by: Bertrand Dossogne (bedo) <bedo@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%