1 <?xml version="1.0" encoding="utf-8"?>
4 <template id="report_intrastatinvoice_document">
5 <t t-call="report.external_layout">
8 <div class="col-xs-5 col-xs-offset-7">
9 <address t-field="o.partner_id"
10 t-field-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": true}' />
11 <span t-field="o.partner_id.vat"/>
16 <span t-if="o.type == 'out_invoice' and (o.state == 'open' or o.state == 'paid')">Invoice</span>
17 <span t-if="o.type == 'out_invoice' and o.state == 'proforma2'">PRO-FORMA</span>
18 <span t-if="o.type == 'out_invoice' and o.state == 'draft'">Draft Invoice</span>
19 <span t-if="o.type == 'out_invoice' and o.state == 'cancel'">Cancelled Invoice</span>
20 <span t-if="o.type == 'out_refund'">Refund</span>
21 <span t-if="o.type == 'in_refund'">Supplier Refund</span>
22 <span t-if="o.type == 'in_invoice'">Supplier Invoice</span>
23 <span t-field="o.number"/>
26 <div class="row mt32 mb32">
27 <div class="col-xs-3" t-if="o.name">
28 <strong>Document:</strong>
31 <div class="col-xs-3" t-if="o.date_invoice">
32 <strong>Invoice Date:</strong>
33 <p t-field="o.date_invoice"/>
35 <div class="col-xs-3" t-if="o.partner_id.ref">
36 <strong>Partner Ref.:</strong>
37 <p t-field="o.partner_id.ref"/>
41 <table class="table table-condensed">
45 <th class="text-right">Taxes</th>
46 <th class="text-right">Intrastat</th>
47 <th class="text-right">Weight</th>
48 <th class="text-right">Quantity</th>
49 <th groups="product.group_uom">Unit of measure</th>
50 <th class="text-right">Unit Price</th>
51 <th class="text-right" groups="sale.group_discount_per_so_line">Discount (%)</th>
52 <th class="text-right">Amount</th>
56 <tr t-foreach="o.invoice_line" t-as="l">
57 <td><span t-field="l.name"/></td>
58 <td class="text-right"><span t-esc="', '.join(map(lambda x: x.name, l.invoice_line_tax_id))"/></td>
59 <td class="text-right"><span t-esc="l.product_id.intrastat_id.name"/></td>
60 <td class="text-right"><span t-esc="l.product_id.weight"/></td>
61 <td class="text-right"><span t-field="l.quantity"/></td>
62 <td groups="product.group_uom"><span t-field="l.uos_id"/></td>
63 <td class="text-right"><span t-field="l.price_unit"/></td>
64 <td groups="sale.group_discount_per_so_line"><span t-field="l.discount"/></td>
65 <td class="text-right">
66 <span t-field="l.price_subtotal"
67 t-field-options='{"widget": "monetary", "display_currency": "o.currency_id"}'/>
74 <div class="col-xs-4 pull-right">
75 <table class="table table-condensed">
76 <tr class="border-black">
77 <td><strong>Total Without Taxes</strong></td>
78 <td class="text-right">
79 <span t-field="o.amount_untaxed" t-field-options='{"widget": "monetary", "display_currency": "o.currency_id"}'/>
84 <td class="text-right">
85 <span t-field="o.amount_tax" t-field-options='{"widget": "monetary", "display_currency": "o.currency_id"}'/>
88 <tr class="border-black">
89 <td><strong>Total</strong></td>
90 <td class="text-right">
91 <span t-field="o.amount_total" t-field-options='{"widget": "monetary", "display_currency": "o.currency_id"}'/>
98 <div class="row" t-if="o.tax_line">
99 <div class="col-xs-3">
100 <table class="table table-condensed">
104 <th class="text-right">Base</th>
105 <th class="text-right">Amount</th>
109 <tr t-foreach="o.tax_line" t-as="t">
110 <td><span t-field="t.name"/></td>
111 <td class="text-right">
112 <span t-field="t.base"
113 t-field-options='{"widget": "monetary", "display_currency": "o.currency_id"}'/>
115 <td class="text-right">
116 <span t-field="t.amount"
117 t-field-options='{"widget": "monetary", "display_currency": "o.currency_id"}'/>
126 <strong>Comment:</strong>
127 <span t-field="o.comment"/>
129 <p t-if="o.payment_term">
130 <strong>Payment Term:</strong>
131 <span t-field="o.payment_term"/>
133 <p t-if="o.fiscal_position">
134 <strong>Fiscal Position:</strong>
135 <span t-field="o.fiscal_position.note"/>
141 <template id="report_intrastatinvoice">
142 <t t-call="report.html_container">
143 <t t-foreach="doc_ids" t-as="doc_id">
144 <t t-raw="translate_doc(doc_id, doc_model, 'partner_id.lang', 'report_intrastat.report_intrastatinvoice_document')"/>