[FIX] repair: operation translation
Translate the repair fees description in the language of the partner, as done for repair lines. opw-2274120 closes odoo/odoo#52760 X-original-commit: 0bc7ac2a9d60534f0e7bec120ad716bbb7d13155 Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
This commit is contained in:
@@ -762,7 +762,10 @@ class RepairFee(models.Model):
|
||||
if partner and self.product_id:
|
||||
fpos = self.env['account.fiscal.position'].get_fiscal_position(partner_invoice.id, delivery_id=self.repair_id.address_id.id)
|
||||
self.tax_id = fpos.map_tax(self.product_id.taxes_id, self.product_id, partner).ids
|
||||
self.name = self.product_id.display_name
|
||||
if partner:
|
||||
self.name = self.product_id.with_context(lang=partner.lang).display_name
|
||||
else:
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user