[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#125478 X-original-commit: d15587e252b55cdcf71c0088482361773dafc8a1 Signed-off-by: Kevin Baptiste <kba@odoo.com>
This commit is contained in:
@@ -28,7 +28,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,
|
||||
|
||||
Reference in New Issue
Block a user