From b459d8a62e051c0c1297bf1df2435c9fae6955d8 Mon Sep 17 00:00:00 2001 From: "Omar (Comunitea)" Date: Tue, 23 Jul 2019 19:08:43 +0200 Subject: [PATCH] [FIX] l10n_es_aeat_sii: Proper check of supplier invoice number Field name has changed. --- l10n_es_aeat_sii/__manifest__.py | 2 +- l10n_es_aeat_sii/models/account_invoice.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/l10n_es_aeat_sii/__manifest__.py b/l10n_es_aeat_sii/__manifest__.py index fa36fa4ae1c..7cb9544e052 100755 --- a/l10n_es_aeat_sii/__manifest__.py +++ b/l10n_es_aeat_sii/__manifest__.py @@ -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.," diff --git a/l10n_es_aeat_sii/models/account_invoice.py b/l10n_es_aeat_sii/models/account_invoice.py index aa2825e6966..7c4350f96d5 100755 --- a/l10n_es_aeat_sii/models/account_invoice.py +++ b/l10n_es_aeat_sii/models/account_invoice.py @@ -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 "