Add missing domain parent = False for vat taxes on party
This commit is contained in:
1 parent
8184911249
commit
d01cb435b2
1 file changed
+4
-2
@@ -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.')
|
||||
|
||||
|
||||
Reference in new issue
Block a user