mirror of
https://gitlab.com/datalifeit/trytond-aeat_sii
synced 2023-12-13 20:30:37 +01:00
Set SII records to None when copy an invoice
This commit is contained in:
parent
3aa8e837d6
commit
d48b627ce9
1 changed files with 8 additions and 0 deletions
|
@ -147,3 +147,11 @@ class Invoice:
|
|||
return
|
||||
for field in _SII_INVOICE_KEYS:
|
||||
setattr(self, field, getattr(tax.tax, field))
|
||||
|
||||
@classmethod
|
||||
def copy(cls, records, default=None):
|
||||
if default is None:
|
||||
default = {}
|
||||
default = default.copy()
|
||||
default['sii_records'] = None
|
||||
return super(Invoice, cls).copy(records, default=default)
|
||||
|
|
Loading…
Reference in a new issue