[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
This commit is contained in:
mra (Open ERP) 2010-03-23 12:54:07 +05:30
parent 24ba2b1a1d
commit 00b14f43fd
1 changed files with 1 additions and 0 deletions

View File

@ -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,