From 00b14f43fd50bd36e2e340aab2093b809b1ddfe8 Mon Sep 17 00:00:00 2001 From: "mra (Open ERP)" Date: Tue, 23 Mar 2010 12:54:07 +0530 Subject: [PATCH] [FIX] account: wizard_multi_charts_accounts: Parent_id did not consider for all l10n_* modules in creation of account.tax.code bzr revid: mra@tinyerp.com-20100323072407-c1sfkudvelflc2ke --- addons/account/account.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/account/account.py b/addons/account/account.py index 84e7e0c74c5..12868487c49 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -2182,6 +2182,7 @@ class wizard_multi_charts_accounts(osv.osv_memory): #create all the tax code children_tax_code_template = self.pool.get('account.tax.code.template').search(cr, uid, [('parent_id','child_of',[tax_code_root_id])], order='id') + children_tax_code_template.sort() for tax_code_template in self.pool.get('account.tax.code.template').browse(cr, uid, children_tax_code_template): vals={ 'name': (tax_code_root_id == tax_code_template.id) and obj_multi.company_id.name or tax_code_template.name,