diff --git a/addons/hr_timesheet/models/project.py b/addons/hr_timesheet/models/project.py index 67c1ecd5ab8..e2a96e5e5b2 100644 --- a/addons/hr_timesheet/models/project.py +++ b/addons/hr_timesheet/models/project.py @@ -237,6 +237,8 @@ class Task(models.Model): _name = "project.task" _inherit = "project.task" + project_id = fields.Many2one(domain=[('is_internal_project', '=', False)]) + display_project_id = fields.Many2one(domain=[('is_internal_project', '=', False)]) analytic_account_active = fields.Boolean("Active Analytic Account", compute='_compute_analytic_account_active', compute_sudo=True) allow_timesheets = fields.Boolean("Allow timesheets", related='project_id.allow_timesheets', help="Timesheets can be logged on this task.", readonly=True) remaining_hours = fields.Float("Remaining Hours", compute='_compute_remaining_hours', store=True, readonly=True, help="Number of allocated hours minus the number of hours spent.")