Skip to content
Snippets Groups Projects
Commit d15587e2 authored by Kevin Baptiste's avatar Kevin Baptiste
Browse files

[FIX] hr: show plan with no company


Plans with no company defined were not showing in the list when
launching a plan on an employee.

task-3366394

closes odoo/odoo#124853

Signed-off-by: default avatarKevin Baptiste <kba@odoo.com>
parent 67d6230f
No related branches found
No related tags found
No related merge requests found
......@@ -26,7 +26,7 @@ class HrPlanWizard(models.TransientModel):
], limit=1)
plan_id = fields.Many2one('hr.plan', default=lambda self: self._default_plan_id(),
domain="[('company_id', '=', company_id), '|', ('department_id', '=', department_id), ('department_id', '=', False)]")
domain="[('company_id', 'in', [False, company_id]), '|', ('department_id', '=', department_id), ('department_id', '=', False)]")
department_id = fields.Many2one('hr.department', compute='_compute_department_id')
employee_ids = fields.Many2many(
'hr.employee', 'hr_employee_hr_plan_wizard_rel', 'employee_id', 'plan_wizard_id', string='Employee', required=True,
......
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