diff options
| author | Hardik Prajapati <hpr@odoo.com> | 2020-02-14 10:15:11 +0000 |
|---|---|---|
| committer | Barad Mahendra <mba@openerp.com> | 2020-04-07 10:03:01 +0000 |
| commit | bc792b225b7871925ea661911e6d8048af651492 (patch) | |
| tree | 69d8c356977891babcb969e97fa042913559c6c2 /odoo/tools/sql.py | |
| parent | 42690cb4da2b812f1d53358930be31961ad325e2 (diff) | |
[FIX] hr_holidays: Fix access error on leave allocation with multi-company
Current Behaviour:
As Admin:
- Install timeoff and enable Multi company
- Create new company and switch to that company
- Go to timeoff > Managers > All > Allocations > Create a record
An AccessError is raised from `_onchange_type` because it try to
access `employee_ids[:1].id` and it may gives employee of another company.
Expected Behaviour:
After this commit, it will not raise the AccessError. if employee of
that company is exist then and then set on leave allocation.
so we have already compute field `employee_id`, it will gives employee
of current company.
closes odoo/odoo#49120
Taskid: 2179571
Closes: #45381
X-original-commit: 73b3d11a0b443116ce91d889397c6d85a13ca1eb
Related: odoo/enterprise#9712
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Diffstat (limited to 'odoo/tools/sql.py')
0 files changed, 0 insertions, 0 deletions
