improve account_invoice_layout module

bzr revid: hmo@tinyerp.com-20081226100330-1h4k14j7lym3msu7
This commit is contained in:
Harry (Open ERP) 2008-12-26 15:33:30 +05:30
parent 31b55eea5f
commit ab5453cb91
3 changed files with 6 additions and 5 deletions

View File

@ -1,7 +1,7 @@
<?xml version="1.0"?>
<openerp>
<data>
<wizard string="Invoice + Message"
<wizard string="Invoices with Layout and Message"
model="account.invoice"
name="wizard.notify_message"
id="wizard_notify_message"
@ -9,7 +9,7 @@
/>
<report id="account_invoices_1"
string="Invoice"
string="Invoices with Layout"
model="account.invoice"
name="account.invoice.layout"
rml="account_invoice_layout/report/report_account_invoice_layout.rml"

View File

@ -97,7 +97,7 @@ class account_invoice_with_message(report_sxw.rml_parse):
def spcl_msg(self, form):
account_msg_data = pooler.get_pool(self.cr.dbname).get('notify.message').browse(self.cr, self.uid, form['message'])
msg = account_msg_data.msg
msg = account_msg_data.msg
return msg

View File

@ -292,9 +292,10 @@
<font color="white"> </font>
</para>
<para style="P19">[[ format((o.payment_term and o.payment_term.note) or '') ]]</para>
<section>
<para style="P19">[[ repeatIn((spcl_msg(data['form']) and spcl_msg(data['form']).splitlines()) or [], 'note') ]]</para>
<para style="P19">[[ note or removeParentNode('table') ]]</para>
<para style="P19">[[ note or removeParentNode('para') ]]</para>
</section>
</story>
</document>