diff --git a/addons/sale_timesheet/models/project.py b/addons/sale_timesheet/models/project.py index ce1286b546c..0d070e6d9fc 100644 --- a/addons/sale_timesheet/models/project.py +++ b/addons/sale_timesheet/models/project.py @@ -45,7 +45,7 @@ class Project(models.Model): timesheet_product_id = fields.Many2one( 'product.product', string='Timesheet Product', domain="""[ - ('type', '=', 'service'), + ('detailed_type', '=', 'service'), ('invoice_policy', '=', 'delivery'), ('service_type', '=', 'timesheet'), '|', ('company_id', '=', False), ('company_id', '=', company_id)]""", diff --git a/addons/sale_timesheet/wizard/project_create_sale_order.py b/addons/sale_timesheet/wizard/project_create_sale_order.py index f85807e0729..82f36387ea5 100644 --- a/addons/sale_timesheet/wizard/project_create_sale_order.py +++ b/addons/sale_timesheet/wizard/project_create_sale_order.py @@ -257,7 +257,7 @@ class ProjectCreateSalesOrderLine(models.TransientModel): _order = 'id,create_date' wizard_id = fields.Many2one('project.create.sale.order', required=True) - product_id = fields.Many2one('product.product', domain=[('type', '=', 'service'), ('invoice_policy', '=', 'delivery'), ('service_type', '=', 'timesheet')], string="Service", + product_id = fields.Many2one('product.product', domain=[('detailed_type', '=', 'service'), ('invoice_policy', '=', 'delivery'), ('service_type', '=', 'timesheet')], string="Service", help="Product of the sales order item. Must be a service invoiced based on timesheets on tasks.") price_unit = fields.Float("Unit Price", help="Unit price of the sales order item.") currency_id = fields.Many2one('res.currency', string="Currency")