From b2d7580cefddbdf5d71760465b1e7406a04f15ee Mon Sep 17 00:00:00 2001 From: Pratik Awasthi Date: Thu, 8 Sep 2022 10:01:34 +0000 Subject: [PATCH] [FIX] sale_project: fix selection description for product Before this commit, while selecting the project and task and project only while creating a product the description was interchanged After this commit, the description is perfect task-2969228 closes odoo/odoo#103985 X-original-commit: 6668d5e5e1111d105f549ae1264eaf34c965caa9 Signed-off-by: Xavier --- addons/sale_project/models/product.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/addons/sale_project/models/product.py b/addons/sale_project/models/product.py index 468ebbf53ea..b048381dba6 100644 --- a/addons/sale_project/models/product.py +++ b/addons/sale_project/models/product.py @@ -63,13 +63,13 @@ class ProductTemplate(models.Model): "Invoice ordered quantities as soon as this service is sold. " "Create a task in an existing project to track the time spent." ) - elif record.service_tracking == 'task_in_project': + elif record.service_tracking == 'project_only': record.product_tooltip = _( "Invoice ordered quantities as soon as this service is sold. " "Create a project for the order with a task for each sales order line " "to track the time spent." ) - elif record.service_tracking == 'project_only': + elif record.service_tracking == 'task_in_project': record.product_tooltip = _( "Invoice ordered quantities as soon as this service is sold. " "Create an empty project for the order to track the time spent." @@ -84,13 +84,13 @@ class ProductTemplate(models.Model): "Invoice your milestones when they are reached. " "Create a task in an existing project to track the time spent." ) - elif record.service_tracking == 'task_in_project': + elif record.service_tracking == 'project_only': record.product_tooltip = _( "Invoice your milestones when they are reached. " "Create a project for the order with a task for each sales order line " "to track the time spent." ) - elif record.service_tracking == 'project_only': + elif record.service_tracking == 'task_in_project': record.product_tooltip = _( "Invoice your milestones when they are reached. " "Create an empty project for the order to track the time spent." @@ -105,13 +105,13 @@ class ProductTemplate(models.Model): "Invoice this service when it is delivered (set the quantity by hand on your sales order lines). " "Create a task in an existing project to track the time spent." ) - elif record.service_tracking == 'task_in_project': + elif record.service_tracking == 'project_only': record.product_tooltip = _( "Invoice this service when it is delivered (set the quantity by hand on your sales order lines). " "Create a project for the order with a task for each sales order line " "to track the time spent." ) - elif record.service_tracking == 'project_only': + elif record.service_tracking == 'task_in_project': record.product_tooltip = _( "Invoice this service when it is delivered (set the quantity by hand on your sales order lines). " "Create an empty project for the order to track the time spent."