Use period start date year.

This commit is contained in:
Sergio Morillo 2018-12-31 09:57:57 +01:00
parent 898a7a3c24
commit 72ece38af8

View file

@ -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')