From 14aceeae6bb424f01ec13b68857022005a87fc97 Mon Sep 17 00:00:00 2001 From: "ron@tinyerp.com" <> Date: Mon, 1 Aug 2011 15:34:40 +0530 Subject: [PATCH] [IMP]: account: l10n fullness and inheritancy: Changed field name tracking to complete_tax optimize the code for inconsistent use of quotes in dict bzr revid: ron@tinyerp.com-20110801100440-bjcjzvz47b7o63mp --- addons/account/account.py | 9 +++------ addons/account/account_view.xml | 10 +++++----- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/addons/account/account.py b/addons/account/account.py index 0d141d2a68b..ba893a7a497 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -2638,17 +2638,14 @@ class wizard_multi_charts_accounts(osv.osv_memory): "purchase_tax": fields.many2one("account.tax.template", "Default Purchase Tax"), 'sale_tax_rate': fields.float('Sale Tax(%)'), 'purchase_tax_rate': fields.float('Purchase Tax(%)'), - 'tracking': fields.boolean('Tracking'), + 'complete_tax': fields.boolean('Complete Tax'), } def onchange_chart_template_id(self, cr, uid, ids, chart_template_id=False, context=None): res = {} - res['value'] = {} - res['value']["tracking"] = False - res['value']["sale_tax"] = False - res['value']["purchase_tax"] = False + res['value'] = {'complete_tax': False, 'sale_tax': False, 'purchase_tax': False} for template in self.pool.get('account.chart.template').browse(cr, uid, [chart_template_id], context=context): if template.set_tax_complete: - res['value']["tracking"] = True + res['value']["complete_tax"] = True if chart_template_id: # default tax is given by the lowesst sequence. For same sequence we will take the latest created as it will be the case for tax created while isntalling the generic chart of account sale_tax_ids = self.pool.get('account.tax.template').search(cr, uid, [("chart_template_id" diff --git a/addons/account/account_view.xml b/addons/account/account_view.xml index 038cd1550ce..70d59c569e9 100644 --- a/addons/account/account_view.xml +++ b/addons/account/account_view.xml @@ -2400,11 +2400,11 @@ - - - - - + + + + +