[IMP]account : improve message in rml and py file

bzr revid: mma@tinyerp.com-20120509084438-76v19h4qpig1lwjv
This commit is contained in:
Mayur Maheshwari (OpenERP) 2012-05-09 14:14:38 +05:30
parent 67a37d807c
commit 3c48a0144d
3 changed files with 8 additions and 4 deletions

View File

@ -39,11 +39,11 @@ class res_company(osv.osv):
_defaults = {
'expects_chart_of_accounts': True,
'overdue_msg': '''Our records indicate that the payments on your account are still due. Please find details below.\n
'overdue_msg': '''Our records indicate that the payments on your account are still due. Please find details below.
\nIf the amount has already been paid, please disregard this notice.
\nOtherwise, please forward us the total amount stated below.
\nIf you have any queries regarding your account, Please contact us.
\nThank you in advance for your cooperation.'''
\n\nThank you in advance for your cooperation.'''
}
res_company()

View File

@ -83,7 +83,7 @@ class Overdue(report_sxw.rml_parse):
def _message(self, obj, company):
company_pool = pooler.get_pool(self.cr.dbname).get('res.company')
message = company_pool.browse(self.cr, self.uid, company.id, {'lang':obj.lang}).overdue_msg
return message
return message.split('\n')
report_sxw.report_sxw('report.account.overdue', 'res.partner',
'addons/account/report/account_print_overdue.rml', parser=Overdue)

View File

@ -158,7 +158,11 @@
<para style="terp_default_9">
<font color="white"> </font>
</para>
<para style="terp_default_10">[[ not getLines(o) and removeParentNode('para') or message(o, company) ]]</para>
<section>
<para style="terp_default_8">[[ not getLines(o) and removeParentNode('section') or repeatIn(message(o, company), 'line') ]]</para>
<para style="terp_default_9">[[ line or removeParentNode('para') ]]</para>
<para style="terp_default_9">[[ line and removeParentNode('para') ]]<font color="white"> </font></para>
</section>
<para style="terp_default_9">
<font color="white"> </font>
</para>