fa172f2e4d36e3fa21878430f2480bdb932eada9
Currently, when an employee's manager (parent_id) changes, the leave manager (leave_manager_id) is set to the new manager if it was not manually changed (leave_manager_id != parent_id.user_id). Please, note that `parent_id` is an `hr.employee` while `leave_manager_id` is a `res.users`. Hence if `leave_manager_id` is not set, we have `leave_manager_id == False`. Next time we change `parent_id` (employee with a user) we have `False != parent_id.user_id` and the leave_manager_id is not set.
…
…
…
…
…
…
…
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%