diff options
| author | Fanny He <fah@odoo.com> | 2019-03-18 18:45:35 +0000 |
|---|---|---|
| committer | Fanny He <fah@odoo.com> | 2019-03-18 18:45:35 +0000 |
| commit | 90731ad170c503cdfe89a9998fa1d1e2a5035c86 (patch) | |
| tree | 6f14056873b12804a99b53a3f9c80791acc86e71 /addons/base_import_module/tests | |
| parent | 88348f8ff90cf0b01374f5c3ba0b5097c1712105 (diff) | |
[FIX] hr: put accrual leave allocation start in a function
When an accrual leave is allocated to an employee,
it starts from the employee creation date.
However, companies want to create employees before they start working.
Therefore, they want to be able to change the accrual leave allocation start
to when the employee starts working.
For instance, when hr_contract is installed, we can change the
accrual leave allocation start to the date when the first contract starts.
We create the function _get_date_start_work(),
that can be overriden to allow those changes.
OPW-1939378
closes odoo/odoo#31930
Signed-off-by: Nans Lefebvre (len) <len@odoo.com>
Diffstat (limited to 'addons/base_import_module/tests')
0 files changed, 0 insertions, 0 deletions
