summaryrefslogtreecommitdiff
path: root/addons/account_analytic_default/security/account_analytic_default_security.xml
diff options
context:
space:
mode:
authorYannick Tivisse <yti@odoo.com>2020-05-13 13:22:25 +0000
committerYannick Tivisse <yti@odoo.com>2020-05-15 07:06:59 +0000
commit152097d099a17dbfbfc3e37cd4cf3bf035fae9a4 (patch)
treeb66fbe8ed92361cc354a9df917d29af37d4773b7 /addons/account_analytic_default/security/account_analytic_default_security.xml
parentb6537c4335356ed660d2acbd914783d4ceea2521 (diff)
[IMP] hr*: Use correct default employee_id based on company
Followup of https://github.com/odoo/odoo/pull/50982/commits Courtesy of https://github.com/sswapnesh In a multi-company environment `self.env['hr.employee'].search([('user_id', '=', self.env.uid)], limit=1)` could be wrong while `employee_id`represents correct employee based on company. https://github.com/odoo/odoo/blob/fb17af76d791488c69eb3829376940b32998d374/addons/hr/models/res_users.py#L13 Making behavior Similar to https://github.com/odoo/odoo/blob/fb17af76d791488c69eb3829376940b32998d374/addons/hr_expense/models/hr_expense.py#L663 closes odoo/odoo#51246 Taskid: 2254687 X-original-commit: d7d1557e7a0f613335a9ca5ca1355d246093f9d1 Related: odoo/enterprise#10599 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Diffstat (limited to 'addons/account_analytic_default/security/account_analytic_default_security.xml')
0 files changed, 0 insertions, 0 deletions