From 675da22ab127ad4cdc993376fdb385ffd6e5b835 Mon Sep 17 00:00:00 2001 From: ced <> Date: Mon, 26 Feb 2007 12:31:01 +0000 Subject: [PATCH] SALE,ACCOUNT,PURCHASE: fix notes in report to wrap correctly bzr revid: ced-d275a8c7609473315a6d468f8b13cda8d66f458f --- addons/account/report/invoice.rml | 4 ++-- addons/purchase/report/order.rml | 9 ++------- addons/purchase/report/request_quotation.rml | 2 +- addons/sale/report/order.rml | 6 +++--- 4 files changed, 8 insertions(+), 13 deletions(-) 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 @@ - +