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):
|
||||
include = False
|
||||
for tax in self.taxes:
|
||||
if tax.tax.operation_347 == 'exclude_invoice':
|
||||
return False
|
||||
if tax.tax.operation_347 != 'ignore':
|
||||
include = True
|
||||
if tax.tax:
|
||||
if tax.tax.operation_347 == 'exclude_invoice':
|
||||
return False
|
||||
if tax.tax.operation_347 != 'ignore':
|
||||
include = True
|
||||
return include
|
||||
|
||||
@fields.depends('type', 'aeat347_operation_key')
|
||||
|
|
Loading…
Reference in a new issue