summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSwapnesh Shah <swapneshshah111@gmail.com>2021-01-09 18:36:58 +0000
committerSwapnesh Shah <swapneshshah111@gmail.com>2021-01-15 16:39:13 +0000
commit9ffd6a62366ce75d125bcab8e1858a05b7c34c74 (patch)
treee6d0343cae465bf4d3671b26c33c48a2366d561f
parent1601bc85bf57c32151306f4f66c0537dceba4534 (diff)
[FIX] sale_project: use correct variable on validation
`product_name` is correct variable name. Followup on https://github.com/odoo/odoo/blame/755bdbeb04a769bf1fcf9157f74d6a5deb4ad48d/addons/sale_project/models/project.py#L68 Fixes #64097 closes odoo/odoo#64296 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
-rw-r--r--addons/sale_project/models/project.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/sale_project/models/project.py b/addons/sale_project/models/project.py
index adcddc144c6..b86a8e72490 100644
--- a/addons/sale_project/models/project.py
+++ b/addons/sale_project/models/project.py
@@ -67,7 +67,7 @@ class ProjectTask(models.Model):
raise ValidationError(_(
'You cannot link the order item %(order_id)s - %(product_id)s to this task because it is a re-invoiced expense.',
order_id=task.sale_line_id.order_id.id,
- product_name=task.sale_line_id.product_id.name,
+ product_id=task.sale_line_id.product_id.name,
))
def unlink(self):