From b54d44129f40ae1d12d68ab8637a0bc519a356f8 Mon Sep 17 00:00:00 2001 From: Jigar Vaghela Date: Mon, 23 Jan 2023 10:06:45 +0000 Subject: [PATCH] [FIX] l10n_in_edi_ewaybill: Document Type not required when send using E-invoice closes odoo/odoo#111248 X-original-commit: a595623a785794decad1d5e1c11cabb698735cdc Signed-off-by: Josse Colpaert --- addons/l10n_in_edi_ewaybill/models/account_edi_format.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/l10n_in_edi_ewaybill/models/account_edi_format.py b/addons/l10n_in_edi_ewaybill/models/account_edi_format.py index 83066d2511d..e003497d4d8 100755 --- a/addons/l10n_in_edi_ewaybill/models/account_edi_format.py +++ b/addons/l10n_in_edi_ewaybill/models/account_edi_format.py @@ -78,8 +78,8 @@ class AccountEdiFormat(models.Model): def _check_move_configuration(self, move): if self.code != "in_ewaybill_1_03": return super()._check_move_configuration(move) - base = self._l10n_in_edi_ewaybill_base_irn_or_direct(move) error_message = [] + base = self._l10n_in_edi_ewaybill_base_irn_or_direct(move) if not move.l10n_in_type_id and base == "direct": error_message.append(_("- Document Type")) if not move.l10n_in_mode: