Maybe I am looking at the wrong file.  C:\Program Files (x86)\TinyERP 
Server\addons\account\report\invoice.rml has only two lines in it and in no way 
resembles the actual output. If this is not the correct file to edit to 
customise the invoice output, what is?

Am using 4.2.3.3 on Win XP64.

OK, this is REALLY weird.  If I copy and paste the contents of invoice.rml and 
pste them below I get what I think I should be looking for.   HOW ON EARTH can 
a single line be copied and paste out as a full page?!?!?!?!?!?!?

WTF!!

<xml>
<document><template><pageTemplate><frame></pageTemplate></template><stylesheet><blockTableStyle><blockAlignment><blockValign></blockTableStyle><blockTableStyle><blockAlignment><blockValign></blockTableStyle><blockTableStyle><blockAlignment><blockValign><lineStyle><blockBackground><blockBackground><blockBackground><blockBackground><blockBackground><blockBackground></blockTableStyle><blockTableStyle><blockAlignment><blockValign></blockTableStyle><blockTableStyle><blockAlignment><blockValign></blockTableStyle><blockTableStyle><blockAlignment><blockValign><blockBackground><blockBackground><blockBackground></blockTableStyle><blockTableStyle><blockAlignment><blockValign><blockBackground><blockBackground><blockBackground></blockTableStyle><blockTableStyle><blockAlignment><blockValign></blockTableStyle><initialize><paraStyle></initialize><paraStyle><paraStyle><paraStyle><paraStyle><paraStyle><paraStyle><paraStyle><paraStyle><paraStyle><paraStyle><paraStyle><paraStyle><paraStyle><paraStyle><paraStyle><paraStyle><paraStyle><paraStyle><paraStyle><paraStyle><paraStyle><paraStyle><paraStyle><paraStyle><paraStyle><paraStyle><paraStyle><paraStyle><paraStyle><paraStyle></stylesheet><images><story><para>&#91;&#91;
 repeatIn&#40;objects,'o'&#41; &#93;&#93;</para><para>&#91;&#91; 
setLang&#40;o.partner_id.lang&#41; 
&#93;&#93;</para><blockTable><tr><td><para><font> 
</font></para></td><td><para>&#91;&#91; o.partner_id.title or '' &#93;&#93; 
&#91;&#91; o.partner_id.name &#93;&#93;</para><para>&#91;&#91; 
o.address_invoice_id.title or '' &#93;&#93; &#91;&#91; 
o.address_invoice_id.name &#93;&#93;</para><para>&#91;&#91; 
o.address_invoice_id.street &#93;&#93;</para><para>&#91;&#91; 
o.address_invoice_id.street2 or '' &#93;&#93;</para><para>&#91;&#91; 
o.address_invoice_id.zip or '' &#93;&#93; &#91;&#91; o.address_invoice_id.city 
or '' &#93;&#93;</para><para>&#91;&#91; o.address_invoice_id.state_id and 
o.address_invoice_id.state_id.name or '' &#93;&#93;</para><para>&#91;&#91; 
o.address_invoice_id.country_id and o.address_invoice_id.country_id.name or '' 
&#93;&#93;</para><para><font> </font></para><para>Tel.&#xA0;&#58; &#91;&#91; 
o.address_invoice_id.phone or removeParentNode&#40;'para'&#41; 
&#93;&#93;</para><para>Fax&#xA0;&#58; &#91;&#91; o.address_invoice_id.fax or 
removeParentNode&#40;'para'&#41; &#93;&#93;</para><para>VAT&#xA0;&#58; 
&#91;&#91; o.partner_id.vat or removeParentNode&#40;'para'&#41; 
&#93;&#93;</para></td></tr></blockTable><para><font> 
</font></para><para>Invoice &#91;&#91; &#40;&#40;o.type == 'out_invoice' and 
&#40;o.state == 'open' or o.state == 'paid'&#41;&#41; or 
removeParentNode&#40;'para'&#41;&#41; and '' &#93;&#93; &#91;&#91; o.number 
&#93;&#93;</para><para>PRO-FORMA &#91;&#91; &#40;&#40;o.type == 'out_invoice' 
and o.state == 'proforma'&#41; or removeParentNode&#40;'para'&#41;&#41; and '' 
&#93;&#93;</para><para>Draft Invoice &#91;&#91; &#40;&#40;o.type == 
'out_invoice' and o.state == 'draft'&#41; or 
removeParentNode&#40;'para'&#41;&#41; and '' &#93;&#93;</para><para>Canceled 
Invoice &#91;&#91; &#40;&#40;o.type == 'out_invoice' and o.state == 
'cancel'&#41; or removeParentNode&#40;'para'&#41;&#41; and '' 
&#93;&#93;</para><para>Refund &#91;&#91; &#40;o.type=='out_refund' or 
removeParentNode&#40;'para'&#41;&#41; and '' &#93;&#93; &#91;&#91; o.number 
&#93;&#93;</para><para>Supplier Refund &#91;&#91; &#40;o.type=='in_refund' or 
removeParentNode&#40;'para'&#41;&#41; and '' &#93;&#93; &#91;&#91; o.number 
&#93;&#93;</para><para><font>Supplier Invoice &#91;&#91; 
&#40;o.type=='in_invoice' or removeParentNode&#40;'para'&#41;&#41; and '' 
&#93;&#93;</font><font>&#91;&#91; o.number &#93;&#93;</font></para><para><font> 
</font></para><para><font>Document</font><font>&#58;</font><font>&#91;&#91;o.name&#93;&#93;</font></para><para><font>Invoice
 Date&#58; 
</font><font>&#91;&#91;o.date_invoice&#93;&#93;</font></para><para><font>Customer
 Ref&#58;</font> &#91;&#91; o.address_invoice_id.partner_id.ref or '/' 
&#93;&#93;</para><para><font> 
</font></para><blockTable><tr><td><para>Description</para></td><td><para>Taxes</para></td><td><para>Quantity</para></td><td><para>Unit
 Price</para></td><td><para>Disc. 
&#40;%&#41;</para></td><td><para>Price</para></td></tr></blockTable><section><para>&#91;&#91;repeatIn&#40;o.invoice_line,'l'&#41;
 &#93;&#93;</para><blockTable><tr><td><para>&#91;&#91; l.name 
&#93;&#93;</para></td><td><para>&#91;&#91; ', '.join&#40;&#91;lt.name for lt in 
l.invoice_line_tax_id&#93;&#41; &#93;&#93;</para></td><td><para>&#91;&#91; 
'%.2f' % l.quantity &#93;&#93; &#91;&#91;l.uos_id and l.uos_id.name or '' 
&#93;&#93;</para></td><td><para>&#91;&#91; '%.2f' % l.price_unit 
&#93;&#93;</para></td><td><para>&#91;&#91; l.discount and '%.2f' % 
&#40;l.discount&#41; or '' &#93;&#93; </para></td><td><para>&#91;&#91; '%.2f' 
%l.price_subtotal &#93;&#93; &#91;&#91;o.currency_id.code 
&#93;&#93;</para></td></tr></blockTable><blockTable><tr><td><para>&#91;&#91; 
repeatIn&#40;&#40;l.note and l.note.splitlines&#40;&#41;&#41; or &#91;&#93;, 
'note'&#41; &#93;&#93;</para></td><td><para>&#91;&#91; note or 
removeParentNode&#40;'table'&#41; 
&#93;&#93;</para></td></tr></blockTable></section><para><font> 
</font></para><blockTable><tr><td><blockTable><tr><td><para>Tax</para></td><td><para>Base</para></td><td><para>Amount</para></td></tr><tr><td><para><font>&#91;&#91;
 repeatIn&#40;o.tax_line,'t'&#41; &#93;&#93;</font> &#91;&#91; t.name 
&#93;&#93;</para></td><td><para>&#91;&#91; '%.2f' % t.base 
&#93;&#93;</para></td><td><para>&#91;&#91; '%.2f' % 
t.amount&#93;&#93;</para></td></tr></blockTable></td><td><blockTable><tr><td><para>Total
 &#40;excl. taxes&#41;&#58;</para></td><td><para>&#91;&#91; '%.2f' % 
o.amount_untaxed &#93;&#93; &#91;&#91;o.currency_id.code 
&#93;&#93;</para></td></tr><tr><td><para>Taxes&#58;</para></td><td><para>&#91;&#91;
 '%.2f' % o.amount_tax &#93;&#93; &#91;&#91;o.currency_id.code 
&#93;&#93;</para></td></tr><tr><td><para>Total <font>&#40;incl. 
taxes&#41;&#58;</font></para></td><td><para>&#91;&#91; '%.2f' % o.amount_total 
&#93;&#93; &#91;&#91;o.currency_id.code 
&#93;&#93;</para></td></tr></blockTable><para><font> 
</font></para></td></tr></blockTable><para>&#91;&#91; format&#40;o.comment or 
''&#41; &#93;&#93;</para><para><font> </font></para><para>&#91;&#91; 
format&#40;&#40;o.payment_term and o.payment_term.note&#41; or ''&#41; 
&#93;&#93;</para></story></document>






-------------------- m2f --------------------

--
http://www.openerp.com/forum/viewtopic.php?p=25273#25273

-------------------- m2f --------------------


_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman/listinfo/tinyerp-users

Reply via email to