mirror of
https://github.com/NaN-tic/trytond-aeat_347.git
synced 2023-12-14 02:03:00 +01:00
parent
9c4625fbf7
commit
14633959f5
1 changed files with 5 additions and 4 deletions
|
@ -143,10 +143,11 @@ class Invoice(metaclass=PoolMeta):
|
||||||
def check_347_taxes(self):
|
def check_347_taxes(self):
|
||||||
include = False
|
include = False
|
||||||
for tax in self.taxes:
|
for tax in self.taxes:
|
||||||
if tax.tax.operation_347 == 'exclude_invoice':
|
if tax.tax:
|
||||||
return False
|
if tax.tax.operation_347 == 'exclude_invoice':
|
||||||
if tax.tax.operation_347 != 'ignore':
|
return False
|
||||||
include = True
|
if tax.tax.operation_347 != 'ignore':
|
||||||
|
include = True
|
||||||
return include
|
return include
|
||||||
|
|
||||||
@fields.depends('type', 'aeat347_operation_key')
|
@fields.depends('type', 'aeat347_operation_key')
|
||||||
|
|
Loading…
Reference in a new issue