[[ repeatIn(ids_to_objects(data['form']['partner_ids']),'o') ]] [[ setLang(o.partner_id.lang) ]] [[ o.partner_id.name or '' ]] [[ display_address(o.partner_id) or '']] VAT: [[ o.partner_id.vat or removeParentNode('para') ]] Document : Customer account statement Date : [[ formatLang(data['form']['date'],date=True) ]] Customer Ref : [[ o.partner_id.ref or '' ]]
[[ format(get_text(o,data['form']['followup_id'])) ]]
[[repeatIn(getLines(o), 'cur_lines') ]] Invoice Date Description Ref Maturity Date Amount Li. [[repeatIn(cur_lines['line'], 'line') ]] [[ formatLang(line['date'],date = True) ]] [[ line['name'] ]] [[ line['ref'] ]] [[ line['date_maturity'] and formatLang(line['date_maturity'], date=True) ]] [[ formatLang(line['balance'], currency_obj=line['currency_id']) ]] [[ line['blocked'] and 'X' or '' ]] Total: [[formatLang(reduce(lambda x,y: x+y['balance'], cur_lines['line'], 0.00), currency_obj=line['currency_id']) ]]