Skip to content
Snippets Groups Projects
Commit c5834142 authored by Simon Lejeune's avatar Simon Lejeune
Browse files

[FIX] hr_maintenance: falsy value in compute


closes odoo/odoo#36456

Signed-off-by: default avatarSimon Lejeune (sle) <sle@openerp.com>
parent 5112d046
No related branches found
No related tags found
No related merge requests found
......@@ -85,6 +85,8 @@ class MaintenanceRequest(models.Model):
r.owner_user_id = r.employee_id.user_id.id
elif r.equipment_id.equipment_assign_to == 'department':
r.owner_user_id = r.department_id.manager_id.user_id.id
else:
r.owner_user_id = False
@api.onchange('employee_id', 'department_id')
def onchange_department_or_employee_id(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment