diff --git a/addons/account/report/invoice.rml b/addons/account/report/invoice.rml index cb6d549a7bd..c5b6de83b64 100644 --- a/addons/account/report/invoice.rml +++ b/addons/account/report/invoice.rml @@ -233,7 +233,8 @@ [[ repeatIn(objects,'o') ]] - [[ setLang(o.partner_id.lang) ]] + JJJJJ [[ o.partner_id.name ]] + [[ setLang(o.partner_id.lang) ]] @@ -300,7 +301,7 @@ [[ o.currency_id.code ]] - [[ format(l.note or removeParentNode('tr')) ]] + [[ format(l.note) or removeParentNode('tr') ]] diff --git a/addons/account_invoice_layout/report/report_account_invoice_layout.rml b/addons/account_invoice_layout/report/report_account_invoice_layout.rml index c9905fc5b68..74d33a8e5ec 100644 --- a/addons/account_invoice_layout/report/report_account_invoice_layout.rml +++ b/addons/account_invoice_layout/report/report_account_invoice_layout.rml @@ -126,7 +126,7 @@ Invoice [[ ((o.type == 'out_invoice' and (o.state == 'open' or o.state == 'paid')) or removeParentNode('para')) and '' ]] [[ o.number ]] PRO-FORMA [[ ((o.type == 'out_invoice' and o.state == 'proforma') or removeParentNode('para')) and '' ]] Draft Invoice [[ ((o.type == 'out_invoice' and o.state == 'draft') or removeParentNode('para')) and '' ]] -Canceled Invoice [[ ((o.type == 'out_invoice' and o.state == 'cancel') or removeParentNode('para')) and '' ]] +Cancelled Invoice [[ ((o.type == 'out_invoice' and o.state == 'cancel') or removeParentNode('para')) and '' ]] Refund [[ (o.type=='out_refund' or removeParentNode('para')) and '' ]] [[ o.number ]] Supplier Refund [[ (o.type=='in_refund' or removeParentNode('para')) and '' ]] [[ o.number ]] Supplier Invoice [[ (o.type=='in_invoice' or removeParentNode('para')) and '' ]][[ o.number ]] @@ -163,7 +163,7 @@ - Note : [[ format(a['note'] or removeParentNode('tr')) ]] + Note : [[ format(a['note']) or removeParentNode('tr') ]] @@ -173,8 +173,8 @@ - [[ a['type']=='text' and a['name'] or removeParentNode('blockTable') ]] - [[ a['type']=='text' and '' or removeParentNode('blockTable') ]] + [[ a['type']=='text' and format(a['name']) or removeParentNode('blockTable') ]] + [[ a['type']=='text' and '' ]] [[ a['type']!='break' and removeParentNode('pageBreak')]] @@ -232,7 +232,7 @@ Amount - [[ repeatIn(o.tax_line,'t') ]][[ t.name ]] + [[ repeatIn(o.tax_line,'t') ]][[ t.name ]] [[ '%.2f' % t.base ]] [[ '%.2f' % t.amount]] @@ -257,7 +257,7 @@ -[[ format(o.comment) or '' ]] -[[ format(o.payment_term and o.payment_term.note) or '' ]] +[[ format(o.comment) or removeParentNode('para') ]] +[[ format(o.payment_term and o.payment_term.note) or removeParentNode('para') ]] \ No newline at end of file diff --git a/addons/account_invoice_layout/report/special_message_invoice.rml b/addons/account_invoice_layout/report/special_message_invoice.rml index 154c91dc536..b227ee0c3d0 100644 --- a/addons/account_invoice_layout/report/special_message_invoice.rml +++ b/addons/account_invoice_layout/report/special_message_invoice.rml @@ -130,7 +130,7 @@ Invoice [[ ((o.type == 'out_invoice' and (o.state == 'open' or o.state == 'paid')) or removeParentNode('para')) and '' ]] [[ o.number ]] PRO-FORMA [[ ((o.type == 'out_invoice' and o.state == 'proforma') or removeParentNode('para')) and '' ]] Draft Invoice [[ ((o.type == 'out_invoice' and o.state == 'draft') or removeParentNode('para')) and '' ]] -Canceled Invoice [[ ((o.type == 'out_invoice' and o.state == 'cancel') or removeParentNode('para')) and '' ]] +Cancelled Invoice [[ ((o.type == 'out_invoice' and o.state == 'cancel') or removeParentNode('para')) and '' ]] [[ o.number ]] Refund [[ (o.type=='out_refund' or removeParentNode('para')) and '' ]] [[ o.number ]] Supplier Refund [[ (o.type=='in_refund' or removeParentNode('para')) and '' ]] [[ o.number ]] Supplier Invoice [[ (o.type=='in_invoice' or removeParentNode('para')) and '' ]][[ o.number ]] @@ -165,7 +165,7 @@ - Note : [[ format(a['note'] or removeParentNode('tr')) ]] + Note : [[ format(a['note']) or removeParentNode('tr') ]] @@ -175,8 +175,8 @@ - [[ a['type']=='text' and a['name'] or removeParentNode('blockTable') ]] - [[ a['type']=='text' and '' or removeParentNode('blockTable') ]] + [[ a['type']=='text' and format(a['name']) or removeParentNode('blockTable') ]] + [[ a['type']=='text' and '' ]] [[ a['type']!='break' and removeParentNode('pageBreak')]] @@ -234,7 +234,7 @@ Amount - [[ repeatIn(o.tax_line,'t') ]][[ t.name ]] + [[ repeatIn(o.tax_line,'t') ]][[ t.name ]] [[ '%.2f' % t.base ]] [[ '%.2f' % t.amount]] @@ -259,14 +259,14 @@ -[[ format(o.comment) or '' ]] -[[ format(o.payment_term and o.payment_term.note) or '' ]] +[[ format(o.comment) or removeParentNode('para') ]] +[[ format(o.payment_term and o.payment_term.note) or removeParentNode('para') ]]
[[ repeatIn((spcl_msg(data['form']) and spcl_msg(data['form']).splitlines()) or [], 'note') ]] -[[ note or removeParentNode('para') ]] +[[ format(note) or removeParentNode('para') ]]