Fix creation of tax codes and taxes for issue677
This commit is contained in:
1 parent
b793dbbcad
commit
9cf13f4ac4
1 file changed
+2
@@ -1583,6 +1583,7 @@ class CreateChartAccount(Wizard):
|
||||
template2tax_code = {}
|
||||
tax_code_template_ids = tax_code_template_obj.search(cursor, user, [
|
||||
('account', '=', datas['form']['account_template']),
|
||||
('parent', '=', False),
|
||||
], context=context)
|
||||
for tax_code_template in tax_code_template_obj.browse(cursor, user,
|
||||
tax_code_template_ids, context=context):
|
||||
@@ -1593,6 +1594,7 @@ class CreateChartAccount(Wizard):
|
||||
template2tax = {}
|
||||
tax_template_ids = tax_template_obj.search(cursor, user, [
|
||||
('account', '=', datas['form']['account_template']),
|
||||
('parent', '=', False),
|
||||
], context=context)
|
||||
for tax_template in tax_template_obj.browse(cursor, user,
|
||||
tax_template_ids, context=context):
|
||||
|
||||
Reference in new issue
Block a user