Skip to content

Commit

Permalink
[FIX] l10n_es_aeat_sii: Proper check of supplier invoice number
Browse files Browse the repository at this point in the history
Field name has changed.
  • Loading branch information
omar7r authored and pedrobaeza committed Nov 18, 2021
1 parent c6b7ffe commit b459d8a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion l10n_es_aeat_sii/__manifest__.py
Expand Up @@ -12,7 +12,7 @@

{
"name": "Suministro Inmediato de Información en el IVA",
"version": "12.0.1.8.0",
"version": "12.0.1.8.1",
"category": "Accounting & Finance",
"website": "https://odoospain.odoo.com",
"author": "Acysos S.L.,"
Expand Down
2 changes: 1 addition & 1 deletion l10n_es_aeat_sii/models/account_invoice.py
Expand Up @@ -290,7 +290,7 @@ def write(self, vals):
"the invoice and create a new one with the "
"correct supplier")
)
elif 'supplier_invoice_number' in vals:
elif 'reference' in vals:
raise exceptions.Warning(
_("You cannot change the supplier invoice number of "
"an invoice already registered at the SII. You must "
Expand Down

0 comments on commit b459d8a

Please sign in to comment.