Skip to content

Commit

Permalink
Merge pull request #1021 from Studio73/8.0-fix-l10n_es_aeat_sii-ejerc…
Browse files Browse the repository at this point in the history
…icio

[8.0][FIX] l10n_es_aeat_sii: Obtener ejercicio del periodo.
  • Loading branch information
pedrobaeza committed Feb 21, 2019
2 parents bd3fdcc + 00e833d commit 974c8f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions l10n_es_aeat_sii/models/account_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,7 @@ def _get_sii_invoice_dict_out(self, cancel=False):
partner = self.partner_id.commercial_partner_id
company = self.company_id
ejercicio = fields.Date.from_string(
self.period_id.fiscalyear_id.date_start).year
self.period_id.date_start).year
periodo = '%02d' % fields.Date.from_string(
self.period_id.date_start).month
inv_dict = {
Expand Down Expand Up @@ -866,7 +866,7 @@ def _get_sii_invoice_dict_in(self, cancel=False):
self._get_account_registration_date(),
)
ejercicio = fields.Date.from_string(
self.period_id.fiscalyear_id.date_start).year
self.period_id.date_start).year
periodo = '%02d' % fields.Date.from_string(
self.period_id.date_start).month
desglose_factura, tax_amount = self._get_sii_in_taxes()
Expand Down

0 comments on commit 974c8f6

Please sign in to comment.