diff --git a/addons/sale_timesheet/models/sale_order.py b/addons/sale_timesheet/models/sale_order.py index 8c033dbecbf..89da8d7a487 100644 --- a/addons/sale_timesheet/models/sale_order.py +++ b/addons/sale_timesheet/models/sale_order.py @@ -155,7 +155,7 @@ class SaleOrderLine(models.Model): remaining_hours_available = fields.Boolean(compute='_compute_remaining_hours_available', compute_sudo=True) remaining_hours = fields.Float('Remaining Hours on SO', compute='_compute_remaining_hours', compute_sudo=True, store=True) has_displayed_warning_upsell = fields.Boolean('Has Displayed Warning Upsell') - timesheet_ids = fields.One2many('account.analytic.line', 'so_line', 'Timesheets') + timesheet_ids = fields.One2many('account.analytic.line', 'so_line', domain=[('project_id', '!=', False)], string='Timesheets') @api.depends('remaining_hours_available', 'remaining_hours') @api.depends_context('with_remaining_hours', 'company')