123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- <?xml version="1.0" encoding="utf-8"?>
- <openerp>
- <data>
- <template id="report_invoice_document" inherit_id="account.report_invoice_document">
- <xpath expr="//table" position="replace">
- <table class="table table-condensed">
- <thead>
- <tr>
- <th>Description</th>
- <th>Quantity</th>
- <th class="text-right">Unit Price</th>
-
- <th class="text-right" groups="sale.group_discount_per_so_line">Discount (%)</th>
-
- <th class="text-right">Taxes</th>
- <th class="text-right">Amount</th>
- </tr>
- </thead>
- <tbody class="invoice_tbody">
- <tr t-foreach="o.invoice_line" t-as="l">
- <td><span t-field="l.name"/></td>
- <td>
- <span t-field="l.quantity"/>
- <span t-field="l.uos_id" groups="product.group_uom"/>
- </td>
- <td class="text-right">
- <span t-field="l.price_unit"/>
- </td>
-
- <td class="text-right" groups="sale.group_discount_per_so_line">
-
- <span t-esc="'%.2f'%(l.discount)"/>
- </td>
-
- <td class="text-right">
- <span t-esc="', '.join(map(lambda x: x.name, l.invoice_line_tax_id))"/>
- </td>
- <td class="text-right">
- <span t-field="l.price_subtotal"
- t-field-options='{"widget": "monetary", "display_currency": "o.currency_id"}'/>
- </td>
- </tr>
- </tbody>
- </table>
- </xpath>
- <xpath expr="//div[@class='col-xs-4 pull-right']/table/tr[2]" position="after">
- <t t-if="o.type=='out_invoice' or o.type=='out_refund'">
-
- <tr>
- <td>Discount</td>
- <td class="text-right">
- <span t-field="o.amount_discount" t-field-options='{"widget": "monetary", "display_currency": "o.currency_id"}'/>
- </td>
- </tr>
-
- </t>
- </xpath>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- </template>
- </data>
- </openerp>
|