summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/tools/debug_manager.js
diff options
context:
space:
mode:
authorHardik Prajapati <hpr@odoo.com>2020-02-14 10:15:11 +0000
committerBarad Mahendra <mba@openerp.com>2020-04-07 10:03:01 +0000
commitbc792b225b7871925ea661911e6d8048af651492 (patch)
tree69d8c356977891babcb969e97fa042913559c6c2 /addons/web/static/src/js/tools/debug_manager.js
parent42690cb4da2b812f1d53358930be31961ad325e2 (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 'addons/web/static/src/js/tools/debug_manager.js')
0 files changed, 0 insertions, 0 deletions