for each="shipment in records"
choose
when test="shipment.state in ['draft', 'waiting']"
Draft Picking List
/when
when test="shipment.state == 'assigned'"
Picking List No: shipment.number
/when
when test="shipment.state == 'cancelled'"
Cancelled Picking List
/when
otherwise
Done Picking List No: shipment.number
/otherwise
/choose
Reference: shipment.origins or ''', ' if (shipment.origins and shipment.reference) else ''shipment.reference or ''
Customer: shipment.customer.rec_name
Planned Date: shipment.planned_date and format_date(shipment.planned_date, user.language) or ''
Warehouse: shipment.warehouse.rec_name
From Location	To Location	Product	Quantity
for each="move in moves(shipment)"
move.from_location_name	move.to_location_name	move.product.rec_name	format_number_symbol(move.quantity, user.language, move.unit, digits=move.unit.digits)
/for
/for
if test="company and company.header"
for each="line in company.header_used.split('\n')"
line
/for
/if
choose
when test="company and company.logo"
/when
when test="company"
company.rec_name
/choose
if test="company and company.footer"
for each="line in company.footer_used.split('\n')"
3/3