From 0c0d1c15afc939d592a964feddf025b0517264b4 Mon Sep 17 00:00:00 2001 From: Joel Zilli Date: Fri, 2 Dec 2022 09:51:08 -0300 Subject: [PATCH] [FIX]hr_timesheet_attendance_ux: change domain in task_id --- hr_timesheet_attendance_ux/__manifest__.py | 2 +- hr_timesheet_attendance_ux/models/account_analytic_line.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hr_timesheet_attendance_ux/__manifest__.py b/hr_timesheet_attendance_ux/__manifest__.py index f3e551a..9f2f6c0 100644 --- a/hr_timesheet_attendance_ux/__manifest__.py +++ b/hr_timesheet_attendance_ux/__manifest__.py @@ -19,7 +19,7 @@ ############################################################################## { "name": "Attendance Timesheet UX", - 'version': "15.0.1.0.0", + 'version': "15.0.1.1.0", 'category': 'Human Resources', 'sequence': 14, 'author': 'ADHOC SA', diff --git a/hr_timesheet_attendance_ux/models/account_analytic_line.py b/hr_timesheet_attendance_ux/models/account_analytic_line.py index 4149cba..5433b78 100644 --- a/hr_timesheet_attendance_ux/models/account_analytic_line.py +++ b/hr_timesheet_attendance_ux/models/account_analytic_line.py @@ -7,7 +7,7 @@ class AccountAnalyticLine(models.Model): _inherit = "account.analytic.line" task_id = fields.Many2one( - domain="[('company_id', '=', company_id), ('project_id.allow_timesheets', '=', True), ('project_id', '=?', project_id), ('stage_id.fold', '=', False)]") + domain="[('project_id.allow_timesheets', '=', True), ('project_id', '=?', project_id), ('stage_id.fold', '=', False)]") @api.onchange('employee_id', 'date') def onchange_compute_hours(self):