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

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

Shipping address : [[ (o.partner_shipping_id and o.partner_id.title and o.partner_shipping_id.title.name) or '' ]] [[ (o.partner_shipping_id and o.partner_shipping_id.name) or '' ]] [[ o.partner_shipping_id and display_address(o.partner_shipping_id) ]] Invoice address : [[ (o.partner_invoice_id and o.partner_invoice_id.title and o.partner_invoice_id.title.name) or '' ]] [[ (o.partner_invoice_id and o.partner_invoice_id.name) or '' ]] [[ o.partner_invoice_id and display_address(o.partner_invoice_id) ]]		[[ (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') ]] TVA : [[ (o.partner_id.vat) or removeParentNode('para') ]]

[[ o.state not in ['draft','sent'] and removeParentNode('para') ]] Quotation N° [[ o.name ]]

[[ o.state in ['draft','sent'] and removeParentNode('para') ]] Order N° [[ o.name ]]

Your Reference	[[ o.state in ['draft','sent'] and removeParentNode('para') ]] Date Ordered [[ o.state not in ['draft','sent'] and removeParentNode('para') ]] Quotation Date	Salesperson	Payment Term
[[ o.client_order_ref ]]	[[ formatLang(o.date_order,date = True) ]]	[[ (o.user_id and o.user_id.name) or '' ]]	[[ (o.payment_term and o.payment_term.name) or '' ]]

Description	Tax	Quantity	Unit Price	[[not show_discount(user.id) and removeParentNode('para')]]Disc.(%)	Price

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

[[ format(line.name) ]]	[[ ', '.join(map(lambda x: x.name, line.tax_id)) ]]	[[ formatLang(line.product_uos and line.product_uos_qty or line.product_uom_qty) ]] [[ line.product_uos and line.product_uos.name or line.product_uom.name ]]	[[ formatLang(line.price_unit , digits=get_digits(dp='Product Price'))]]	[[show_discount(user.id) and formatLang(line.discount, digits=get_digits(dp='Discount')) or '']]	[[ formatLang(line.price_subtotal, digits=get_digits(dp='Account'), currency_obj=o.pricelist_id.currency_id) ]]
	Net Total :	[[ formatLang(o.amount_untaxed, dp='Account', currency_obj=o.pricelist_id.currency_id) ]]
	Taxes :	[[ formatLang(o.amount_tax, dp='Account', currency_obj=o.pricelist_id.currency_id) ]]
	Total :	[[ formatLang(o.amount_total, dp='Account', currency_obj=o.pricelist_id.currency_id) ]]

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

[[ format(o.payment_term and o.payment_term.note or (o.partner_id.property_payment_term and o.partner_id.property_payment_term.note or '')) ]]

ado

2006-08-31T10:54:44