[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:
@@ -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"/>
|
||||
|
||||
Reference in New Issue
Block a user