From a15ecc8afaa73f8dd73a953a998919c0df4d4e32 Mon Sep 17 00:00:00 2001 From: dbkosky Date: Fri, 29 Jul 2022 13:13:26 +0000 Subject: [PATCH] [FIX] l10n_it_edi: empty payment reference error When the payment reference on an invoice is empty an error occurs when trying to generate the edi xml. The error comes from trying to retrieve a slice on a bool. To solve this, a t-if has been added in this commit, such that the function is not called when the field is empty. closes odoo/odoo#97151 X-original-commit: 67616aac66a0b7895dfad80d825ecff7b4cd75b1 Signed-off-by: Josse Colpaert Signed-off-by: Daniel Kosky (dako) --- addons/l10n_it_edi/data/invoice_it_template.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/l10n_it_edi/data/invoice_it_template.xml b/addons/l10n_it_edi/data/invoice_it_template.xml index 3ec25dc45f5..f0e05ede6f2 100644 --- a/addons/l10n_it_edi/data/invoice_it_template.xml +++ b/addons/l10n_it_edi/data/invoice_it_template.xml @@ -176,7 +176,7 @@ - +