mirror of
https://gitlab.com/datalifeit/trytond-account_es_sii
synced 2023-12-14 06:13:02 +01:00
Use period start date year.
This commit is contained in:
parent
898a7a3c24
commit
72ece38af8
|
@ -25,7 +25,7 @@ class BaseTrytonInvoiceMapper(Model):
|
|||
super(BaseTrytonInvoiceMapper, self).__init__(*args, **kwargs)
|
||||
self.pool = Pool()
|
||||
|
||||
year = attrgetter('move.period.fiscalyear.name')
|
||||
year = attrgetter('move.period.start_date.year')
|
||||
period = attrgetter('move.period.start_date.month')
|
||||
nif = attrgetter('company.party.sii_vat_code')
|
||||
issue_date = attrgetter('invoice_date')
|
||||
|
|
Loading…
Reference in a new issue