[IMP]: account: l10n fullness and inheritancy: Improved code for name

bzr revid: ron@tinyerp.com-20110803115601-rw9ri28p3vz6zjmr
This commit is contained in:
ron@tinyerp.com
2011-08-03 17:26:01 +05:30
parent 9823ed6a73
commit fb3e67988b
+1 -3
View File
@@ -2742,10 +2742,8 @@ class wizard_multi_charts_accounts(osv.osv_memory):
if not obj_multi.complete_tax:
tax_dict = {'sale': obj_multi.sale_tax_rate, 'purchase': obj_multi.purchase_tax_rate}
for tax_type, value in tax_dict.items():
tax_name = 'TAX Paid'
tax_name = tax_type == 'sale' and 'TAX Received' or 'TAX Paid'
if value > 0.0:
if tax_type == 'sale':
tax_name = 'TAX Received'
new_tax_code_temp = obj_tax_code_template.create(cr, uid, {'name': _('TAX %s%%') % (value), 'code': _('TAX %s%%') % (value)}, 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, {