fix: Handle None value for item description in customer portal invoice view (backport #43823) (#43889)

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

(cherry picked from commit ceb449c75b)

Co-authored-by: ljain112 <ljain112@gmail.com>
This commit is contained in:
mergify[bot]
2024-10-29 22:38:41 +05:30
committed by GitHub
parent 7189daba19
commit 8a72845ee6

View File

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