From 6c7a88d74cffd296f3df69015639450c32bf1ee3 Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Mon, 18 Apr 2016 15:49:11 +0200 Subject: [PATCH] [FIX] account: translate tax description in partner lang The tax description in the taxes lines (e.g. in invoices) is supposed to be translated in the customer/supplier language, as this is what is displayed in the printed reports sent to the customer. This is the behavior in place in Odoo 7.0 & 8.0. (e.g. in invoices) opw-675038 --- addons/account/models/account.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/models/account.py b/addons/account/models/account.py index 5802b66fedb..b24c3e06250 100644 --- a/addons/account/models/account.py +++ b/addons/account/models/account.py @@ -666,7 +666,7 @@ class AccountTax(models.Model): taxes.append({ 'id': tax.id, - 'name': tax.name, + 'name': tax.with_context(**{'lang': partner.lang} if partner else {}).name, 'amount': tax_amount, 'sequence': tax.sequence, 'account_id': tax.account_id.id,