{% if production.raw.show_lots %} {% if show_lot and 'expiration_date' in moves[0]%} {%else%} {% for move in record.inputs %} {% if record.raw.show_lots %} {% if move.raw.lot and move.lot.raw.expiration_date %} {%else%} {% endfor %}
{{ label('stock.move', 'from_location') }} {{ label('stock.move', 'to_location') }} {{ label('product.product', 'code') }} {{ label('product.template', 'name') }}{{ label('stock.move', 'lot') }}{{ label('stock.lot', 'expiration_date') }} {% endif %} {%else%} {% endif %} {{label('stock.move', 'quantity') }} {{ label('stock.move', 'unit') }}
{{ move.from_location.render.code }} {{ move.from_location.render.name }} {{ move.to_location.render.code }} {{ move.to_location.render.name }} {{ move.product and move.product.render.code or '-' }} {{ move.product and move.product.render.name or '-' }}{{ move.lot and move.lot.raw.name or ''}}{{ move.lot.render.expiration_date }} {% endif %} {%else%} {%endif%} {{ move.render.quantity }} {{ move.unit.render.name }}