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>[[ repeatIn(objects,'o') ]]</para><para>[[ setLang(o.partner_id.lang) ]]</para><blockTable><tr><td><para><font> </font></para></td><td><para>[[ o.partner_id.title or '' ]] [[ o.partner_id.name ]]</para><para>[[ o.address_invoice_id.title or '' ]] [[ o.address_invoice_id.name ]]</para><para>[[ o.address_invoice_id.street ]]</para><para>[[ o.address_invoice_id.street2 or '' ]]</para><para>[[ o.address_invoice_id.zip or '' ]] [[ o.address_invoice_id.city or '' ]]</para><para>[[ o.address_invoice_id.state_id and o.address_invoice_id.state_id.name or '' ]]</para><para>[[ o.address_invoice_id.country_id and o.address_invoice_id.country_id.name or '' ]]</para><para><font> </font></para><para>Tel. : [[ o.address_invoice_id.phone or removeParentNode('para') ]]</para><para>Fax : [[ o.address_invoice_id.fax or removeParentNode('para') ]]</para><para>VAT : [[ o.partner_id.vat or removeParentNode('para') ]]</para></td></tr></blockTable><para><font> </font></para><para>Invoice [[ ((o.type == 'out_invoice' and (o.state == 'open' or o.state == 'paid')) or removeParentNode('para')) and '' ]] [[ o.number ]]</para><para>PRO-FORMA [[ ((o.type == 'out_invoice' and o.state == 'proforma') or removeParentNode('para')) and '' ]]</para><para>Draft Invoice [[ ((o.type == 'out_invoice' and o.state == 'draft') or removeParentNode('para')) and '' ]]</para><para>Canceled Invoice [[ ((o.type == 'out_invoice' and o.state == 'cancel') or removeParentNode('para')) and '' ]]</para><para>Refund [[ (o.type=='out_refund' or removeParentNode('para')) and '' ]] [[ o.number ]]</para><para>Supplier Refund [[ (o.type=='in_refund' or removeParentNode('para')) and '' ]] [[ o.number ]]</para><para><font>Supplier Invoice [[ (o.type=='in_invoice' or removeParentNode('para')) and '' ]]</font><font>[[ o.number ]]</font></para><para><font> </font></para><para><font>Document</font><font>:</font><font>[[o.name]]</font></para><para><font>Invoice Date: </font><font>[[o.date_invoice]]</font></para><para><font>Customer Ref:</font> [[ o.address_invoice_id.partner_id.ref or '/' ]]</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. (%)</para></td><td><para>Price</para></td></tr></blockTable><section><para>[[repeatIn(o.invoice_line,'l') ]]</para><blockTable><tr><td><para>[[ l.name ]]</para></td><td><para>[[ ', '.join([lt.name for lt in l.invoice_line_tax_id]) ]]</para></td><td><para>[[ '%.2f' % l.quantity ]] [[l.uos_id and l.uos_id.name or '' ]]</para></td><td><para>[[ '%.2f' % l.price_unit ]]</para></td><td><para>[[ l.discount and '%.2f' % (l.discount) or '' ]] </para></td><td><para>[[ '%.2f' %l.price_subtotal ]] [[o.currency_id.code ]]</para></td></tr></blockTable><blockTable><tr><td><para>[[ repeatIn((l.note and l.note.splitlines()) or [], 'note') ]]</para></td><td><para>[[ note or removeParentNode('table') ]]</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>[[ repeatIn(o.tax_line,'t') ]]</font> [[ t.name ]]</para></td><td><para>[[ '%.2f' % t.base ]]</para></td><td><para>[[ '%.2f' % t.amount]]</para></td></tr></blockTable></td><td><blockTable><tr><td><para>Total (excl. taxes):</para></td><td><para>[[ '%.2f' % o.amount_untaxed ]] [[o.currency_id.code ]]</para></td></tr><tr><td><para>Taxes:</para></td><td><para>[[ '%.2f' % o.amount_tax ]] [[o.currency_id.code ]]</para></td></tr><tr><td><para>Total <font>(incl. taxes):</font></para></td><td><para>[[ '%.2f' % o.amount_total ]] [[o.currency_id.code ]]</para></td></tr></blockTable><para><font> </font></para></td></tr></blockTable><para>[[ format(o.comment or '') ]]</para><para><font> </font></para><para>[[ format((o.payment_term and o.payment_term.note) or '') ]]</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
