From b478a7d8263d20a45aa3bf62e9cae7a0f34974dc Mon Sep 17 00:00:00 2001 From: Raimon Esteve Date: Wed, 7 Sep 2022 09:10:17 +0200 Subject: [PATCH] Required item description in case has not description line (required item description in the validator) --- template_facturae_3.2.1.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template_facturae_3.2.1.xml b/template_facturae_3.2.1.xml index d5f0b13..e13cef9 100644 --- a/template_facturae_3.2.1.xml +++ b/template_facturae_3.2.1.xml @@ -255,7 +255,7 @@ - TransactionDate - Extensions #} - {{ line.description and line.description[:2500] or '' }} + {{ (line.description and line.description[:2500]) or (line.product and line.product.rec_name[:2500]) or '#'+line.id|string }} {{ line.quantity }} {{ UOM_CODE2TYPE.get(line.unit.symbol, '05') if line.unit else '05' }} {{ Currency.compute(invoice.currency, line.unit_price, euro) }}