Files
Odoo-Build/snippets/stock.report_picking.round_qty.xml
T

15 lines
749 B
XML

<data inherit_id="stock.report_picking" priority="50">
<xpath expr="//span[@id='product_uom_qty']" position="replace">
<!-- 34.00 -> 34 -->
<!-- 34.50 -> 34.50 -->
<!-- 34.75 -> 34.75 -->
<span id="product_uom_qty" t-esc="'%g' % ml.product_uom_qty if int(ml.product_uom_qty) == ml.product_uom_qty else '%.2f' % ml.product_uom_qty"/>
</xpath>
<xpath expr="//span[@id='qty_available']" position="replace">
<!-- 34.00 -> 34 -->
<!-- 34.50 -> 34.50 -->
<!-- 34.75 -> 34.75 -->
<span id="qty_available" t-esc="'%g' % ml.product_id.qty_available if int(ml.product_id.qty_available) == ml.product_id.qty_available else '%.2f' % ml.product_id.qty_available"/>
</xpath>
</data>