Skip to content

Commit 3b57a27

Browse files
committed
[FIX] hr_timesheet: fix project_id domain
1 parent abec25b commit 3b57a27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addons/hr_timesheet/models/project_task.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
class ProjectTask(models.Model):
3030
_inherit = "project.task"
3131

32-
project_id = fields.Many2one(domain="['|', ('company_id', '=', False), ('company_id', '=?', company_id), ('is_internal_project', '=', False)]")
32+
project_id = fields.Many2one(domain="['|', ('company_id', '=', False), ('company_id', '=?', company_id), ('is_internal_project', '=', False), ('is_template', 'in', [is_template, False])]")
3333
analytic_account_active = fields.Boolean("Active Analytic Account", related='project_id.analytic_account_active', export_string_translation=False)
3434
allow_timesheets = fields.Boolean(
3535
"Allow timesheets",

0 commit comments

Comments
 (0)