fix uom & stock_uom print hide logic (#15327)
This commit is contained in:
parent
431b4fba72
commit
0d931e1d7d
@ -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")) -%}
|
||||
<small class="pull-left">{{ _(doc.uom or doc.stock_uom) }}</small>
|
||||
{% if (doc.uom and not doc.is_print_hide("uom")) %}
|
||||
<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 %}
|
||||
{{ doc.get_formatted("qty", doc) }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user