diff --git a/addons/account/report/invoice.rml b/addons/account/report/invoice.rml index 8e42966d38b..90a503d8110 100644 --- a/addons/account/report/invoice.rml +++ b/addons/account/report/invoice.rml @@ -189,10 +189,10 @@ - [[ repeatIn((l.note and [l.note]) or [], 'note') ]] + [[ repeatIn((l.note and l.note.splitlines()) or [], 'note') ]] - [[ note or removeParentNode('table') ]] [[ setTag('para','xpre') ]] + [[ note or removeParentNode('table') ]] diff --git a/addons/purchase/report/order.rml b/addons/purchase/report/order.rml index eaac95e1aae..892583e8799 100644 --- a/addons/purchase/report/order.rml +++ b/addons/purchase/report/order.rml @@ -206,19 +206,14 @@ - + - [[ repeatIn((line.notes and [line.notes]) or [], 'l') ]] + [[ repeatIn((line.notes and line.notes.splitlines()) or [], 'l') ]] [[ l or removeParentNode('table') ]] - - - - - diff --git a/addons/purchase/report/request_quotation.rml b/addons/purchase/report/request_quotation.rml index 5aca5fbe652..afe4ca25259 100644 --- a/addons/purchase/report/request_quotation.rml +++ b/addons/purchase/report/request_quotation.rml @@ -185,7 +185,7 @@ - [[ repeatIn((line.notes and [line.notes]) or [], 'l') ]] + [[ repeatIn((line.notes and line.notes.splitlines()) or [], 'l') ]] [[ l or removeParentNode('table') ]] diff --git a/addons/sale/report/order.rml b/addons/sale/report/order.rml index 68b6c284d82..04fde68916b 100644 --- a/addons/sale/report/order.rml +++ b/addons/sale/report/order.rml @@ -185,10 +185,10 @@ - [[ repeatIn((line.notes and [line.notes]) or [], 'l') ]] + [[ repeatIn((line.notes and line.notes.splitlines()) or [], 'l') ]] - [[ l ]] [[ setTag('para','xpre') ]] + [[ l or removeParentNode('table') ]] @@ -198,7 +198,7 @@ - +