You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.6 KiB
50 lines
1.6 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<!-- Demo record for Invoice Design -->
|
|
<data noupdate="1">
|
|
<record id="invoice_design_demo" model="invoice.design">
|
|
<field name="name">Demo Invoice Design</field>
|
|
<field name="invoice_template"><![CDATA[
|
|
<div>
|
|
<center><h1>INVOICE</h1></center>
|
|
<center><h1><t t-esc="invoice.name"/></h1></center>
|
|
<h4>Date:<t t-esc="invoice.invoice_date"/></h4>
|
|
<h4>Customer: <t t-esc="invoice.partner_id.name"/></h4>
|
|
<h4>Payment Term:<t t-esc="invoice.invoice_payment_term_id.name"/></h4>
|
|
<table border="1px solid" align="centre" style="width:100%" class="table">
|
|
<thead>
|
|
<tr>
|
|
<th>Product</th>
|
|
<th>Quantity</th>
|
|
<th>Unit Price</th>
|
|
<th>Subtotal</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<t t-foreach="invoice.invoice_line_ids" t-as="line">
|
|
<tr>
|
|
<td>
|
|
<t t-esc="line.product_id.name"/>
|
|
</td>
|
|
<td>
|
|
<t t-esc="line.quantity"/>
|
|
</td>
|
|
<td>
|
|
<t t-esc="line.price_unit"/>
|
|
</td>
|
|
<td>
|
|
<t t-esc="line.price_subtotal"/>
|
|
</td>
|
|
</tr>
|
|
</t>
|
|
</tbody>
|
|
</table>
|
|
<br/>
|
|
<h5 style="float:right;">Total Amount:
|
|
<t t-esc="invoice.amount_total"/>
|
|
</h5>
|
|
</div>
|
|
]]></field>
|
|
</record>
|
|
</data>
|
|
</odoo>
|
|
|