[FIX] repair: translate sale description
Translate the sale description for products and operations. opw-2274120 closes odoo/odoo#53176 X-original-commit: df364e64e75523533b86fb8d488cb081eb2e5b77 Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
This commit is contained in:
@@ -683,7 +683,10 @@ class RepairLine(models.Model):
|
||||
product = self.product_id
|
||||
self.name = product.display_name
|
||||
if product.description_sale:
|
||||
self.name += '\n' + product.description_sale
|
||||
if partner:
|
||||
self.name += '\n' + self.product_id.with_context(lang=partner.lang).description_sale
|
||||
else:
|
||||
self.name += '\n' + self.product_id.description_sale
|
||||
self.product_uom = product.uom_id.id
|
||||
if self.type != 'remove':
|
||||
if partner:
|
||||
@@ -768,7 +771,10 @@ class RepairFee(models.Model):
|
||||
self.name = self.product_id.display_name
|
||||
self.product_uom = self.product_id.uom_id.id
|
||||
if self.product_id.description_sale:
|
||||
self.name += '\n' + self.product_id.description_sale
|
||||
if partner:
|
||||
self.name += '\n' + self.product_id.with_context(lang=partner.lang).description_sale
|
||||
else:
|
||||
self.name += '\n' + self.product_id.description_sale
|
||||
|
||||
warning = False
|
||||
if not pricelist:
|
||||
|
||||
Reference in New Issue
Block a user