[[repeatIn(objects,'o')]]

[[ setLang(o.partner_id.lang) ]]

Shipping address : [[ (o.dest_address_id and o.dest_address_id.name) or (o.warehouse_id and o.warehouse_id.name) or '']] [[ (o.dest_address_id and display_address(o.dest_address_id)) or (o.warehouse_id and display_address(o.warehouse_id.partner_id)) or '']]		[[ (o.partner_id and o.partner_id.title and o.partner_id.title.name) or '' ]] [[ (o.partner_id and o.partner_id.name) or '' ]] [[ o.partner_id and display_address(o.partner_id) ]] Tel : [[ (o.partner_id.phone) or removeParentNode('para')]] Fax : [[ (o.partner_id.fax) or removeParentNode('para')]] TIN : [[ (o.partner_id.vat) or removeParentNode('para')]]

[[ o.state=='draft' and removeParentNode('para') ]] Purchase Order Confirmation N° [[ o.name ]]

[[ o.state<>'draft' and removeParentNode('para') ]] Request for Quotation N° [[ o.name ]]

Our Order Reference	Your Order Reference	Order Date	Validated By
[[ o.name or '' ]]	[[ o.partner_ref or '' ]]	[[formatLang(o.date_order,date=True) ]]	[[ (o.validator and o.validator.name) or '' ]]

Description	Taxes	Date Req.	Qty	Unit Price	Net Price

[[repeatIn(o.order_line,'line')]]

[[ line.name ]]	[[ ', '.join(map(lambda x: x.name, line.taxes_id)) ]]	[[ formatLang( line.date_planned, date=True) ]]	[[ formatLang(line.product_qty ) ]] [[ line.product_uom.name ]]	[[ formatLang(line.price_unit, digits=get_digits(dp='Account') ) ]]	[[ formatLang(line.price_subtotal, digits=get_digits(dp='Account') ) ]] [[ o.pricelist_id.currency_id.symbol ]]
[[ line.notes or removeParentNode('tr') ]]					
	Net Total :	[[ formatLang(o.amount_untaxed, digits=get_digits(dp='Account') ) ]] [[ o.pricelist_id.currency_id. symbol ]]
	Taxes :	[[ formatLang(o.amount_tax, digits=get_digits(dp='Account')) ]] [[ o.pricelist_id.currency_id. symbol ]]
	Total :	[[ formatLang(o.amount_total, digits=get_digits(dp='Account') ) ]] [[ o.pricelist_id.currency_id. symbol ]]

[[ format(o.notes or '') ]]

ado

2006-09-04T10:59:43