From 9cf13f4ac49196e1c848cd7aa54485cd8469badf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 18 Dec 2008 12:16:45 +0100 Subject: [PATCH] Fix creation of tax codes and taxes for issue677 --- account.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/account.py b/account.py index 77f7365a80..b6de591d1e 100644 --- a/account.py +++ b/account.py @@ -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):