From d01cb435b2f3aa283acfa768706e599eb1f906b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 3 Oct 2008 15:59:19 +0200 Subject: [PATCH] Add missing domain parent = False for vat taxes on party --- tax.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tax.py b/tax.py index a947cba2d6..3ecd68b640 100644 --- a/tax.py +++ b/tax.py @@ -789,12 +789,14 @@ class Party(OSV): vat = fields.Property(type='many2one', relation='account.tax', string='VAT', group_name='Accounting Properties', view_load=True, - domain="[('group.code', '=', 'vat'), ('company', '=', company)]", + domain="[('group.code', '=', 'vat'), ('company', '=', company), " \ + "('parent', '=', False)]", help='This tax will be used, instead of the default VAT.') supplier_vat = fields.Property(type='many2one', relation='account.tax', string='Supplier VAT', group_name='Accounting Properties', view_load=True, - domain="[('group.code', '=', 'vat'), ('company', '=', company)]", + domain="[('group.code', '=', 'vat'), ('company', '=', company), " \ + "('parent', '=', False)]", help='This tax will be used, instead of the default VAT ' \ 'for supplier invoices.')