diff --git a/hr_multi_company/models/hr_multi_company.py b/hr_multi_company/models/hr_multi_company.py index 5ea3010e..725e82df 100755 --- a/hr_multi_company/models/hr_multi_company.py +++ b/hr_multi_company/models/hr_multi_company.py @@ -27,25 +27,25 @@ class HrAttendanceMultiCompany(models.Model): _inherit = 'hr.attendance' company_id = fields.Many2one('res.company', 'Company', copy=False, readonly=True, help="Company", - default=lambda self: self.env.user.company_id) + default=lambda self: self.env.company) class HrLeaveMultiCompany(models.Model): _inherit = 'hr.leave' company_id = fields.Many2one('res.company', 'Company', copy=False, readonly=True, help="Company", - default=lambda self: self.env.user.company_id) + default=lambda self: self.env.company) class HrPayslipMultiCompany(models.Model): _inherit = 'hr.payslip.run' company_id = fields.Many2one('res.company', 'Company', copy=False, readonly=True, help="Company", - default=lambda self: self.env.user.company_id) + default=lambda self: self.env.company) class HrSalaryCategoryMultiCompany(models.Model): _inherit = 'hr.salary.rule.category' company_id = fields.Many2one('res.company', 'Company', copy=False, readonly=True, help="Comapny", - default=lambda self: self.env.user.company_id) + default=lambda self: self.env.company)