fix uom & stock_uom print hide logic (#15327)

This commit is contained in:
Zarrar 2018-09-06 13:08:58 +05:30 committed by Nabin Hait
parent 431b4fba72
commit 0d931e1d7d

View File

@ -1,4 +1,6 @@
{% if (doc.stock_uom and not doc.is_print_hide("stock_uom")) or (doc.uom and not doc.is_print_hide("uom")) -%} {% if (doc.uom and not doc.is_print_hide("uom")) %}
<small class="pull-left">{{ _(doc.uom or doc.stock_uom) }}</small> <small class="pull-left">{{ _(doc.uom) }}</small>
{% elif (doc.stock_uom and not doc.is_print_hide("stock_uom")) %}
<small class="pull-left">{{ _(doc.stock_uom) }}</small>
{%- endif %} {%- endif %}
{{ doc.get_formatted("qty", doc) }} {{ doc.get_formatted("qty", doc) }}