From ccb8bb9a1f219d013568135b7d11c11377b24ad9 Mon Sep 17 00:00:00 2001 From: "ron@tinyerp.com" <> Date: Tue, 29 Nov 2011 18:04:20 +0530 Subject: [PATCH] [IMP] account: Changed the Tax name and code which is generated from template dynamically because of account name constrain on account.tax model. bzr revid: ron@tinyerp.com-20111129123420-oto8m9ug8tobje9s --- addons/account/account.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/account.py b/addons/account/account.py index a347f5bcce2..bb9c95a404f 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -3246,7 +3246,7 @@ class wizard_multi_charts_accounts(osv.osv_memory): for tax_type, value in tax_dict.items(): tax_name = tax_type == 'sale' and 'TAX Received' or 'TAX Paid' if value > 0.0: - tax_string = _('TAX %s%%') % (value) + tax_string = _('TAX %s %s%%') % (tax_type, value) new_tax_code_temp = obj_tax_code_template.create(cr, uid, {'name': tax_string, 'code': tax_string}, context=context) new_paid_tax_code_temp = obj_tax_code_template.create(cr, uid, {'name': _('%s %s%%') % (tax_name, value), 'code': _('%s %s%%') % (tax_name, value)}, context=context) sales_tax_temp = obj_tax_temp.create(cr, uid, {