[FIX] account_edi_ubl: only add Description if it exist.

Description is line.name but if this field is not defined the tag in the XML should not be set.

closes odoo/odoo#60138

X-original-commit: a1d5981912631c871a3efb692e3c1a4e64bb5957
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
Signed-off-by: bfr-o <bfr-o@users.noreply.github.com>
This commit is contained in:
Benjamin Frantzen (bfr)
2020-10-15 20:22:30 +00:00
parent d9a5a28baf
commit ab3cd5196b
@@ -87,7 +87,7 @@
t-esc="format_monetary(tax['amount'])"/>
</cac:TaxTotal>
<cac:Item>
<cbc:Description t-esc="line.name.replace('\n', ', ')"/>
<cbc:Description t-if="line.name" t-esc="line.name.replace('\n', ', ')"/>
<cbc:Name t-esc="line.product_id.name"/>
<cac:SellersItemIdentification t-if="line.product_id.default_code">
<cbc:ID t-esc="line.product_id.default_code"/>