fix: Handle None value for item description in customer portal invoice view

This commit is contained in:
ljain112
2024-10-24 18:10:08 +05:30
parent 004c4e21d4
commit ceb449c75b

View File

@@ -173,7 +173,7 @@
<div class="col-xs-8 col-sm-10"> <div class="col-xs-8 col-sm-10">
{{ d.item_code }} {{ d.item_code }}
<div class="text-muted small item-description"> <div class="text-muted small item-description">
{{ html2text(d.description) | truncate(140) }} {{ html2text(d.description or "") | truncate(140) }}
</div> </div>
<span class="text-muted mt-2 d-l-n order-qty"> <span class="text-muted mt-2 d-l-n order-qty">
{{ _("Qty ") }}({{ d.get_formatted("qty") }}) {{ _("Qty ") }}({{ d.get_formatted("qty") }})