221 lines
11 KiB
XML
221 lines
11 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<data>
|
|
<!-- Invoice Body -->
|
|
<template id="report_invoice_document">
|
|
<t t-call="web.external_layout">
|
|
<t t-set="o" t-value="o.with_context({'lang':o.partner_id.lang})"/>
|
|
<div class="page">
|
|
<div class="row">
|
|
<div class="col-xs-3">
|
|
<t t-call="dp_reports.partner_data"/>
|
|
</div>
|
|
<div class="col-xs-3">
|
|
<strong>Lieferadresse</strong>
|
|
<div class="partner-data">
|
|
<span t-esc="o.partner_shipping_id.name"/>
|
|
<span t-esc="o.partner_shipping_id.street"/><br/>
|
|
<span t-esc="o.partner_shipping_id.zip"/> <span t-esc="o.partner_shipping_id.city"/><br/>
|
|
<span t-esc="o.partner_shipping_id.country_id.name"/>
|
|
</div>
|
|
</div>
|
|
<div class="col-xs-3">
|
|
<strong>Rechnungsadresse</strong>
|
|
<div class="partner-data">
|
|
<span t-esc="o.partner_id.name"/><br/>
|
|
<span t-esc="o.partner_id.street"/><br/>
|
|
<span t-esc="o.partner_id.zip"/> <span t-esc="o.partner_id.city"/><br/>
|
|
<t t-if="o.partner_id.country_id"><span t-esc="o.partner_id.country_id.name"/><br/></t>
|
|
<t t-if="o.partner_id.email"><span t-esc="o.partner_id.email"/><br/></t>
|
|
<t t-if="o.partner_id.phone"><span t-esc="o.partner_id.phone"/><br/></t>
|
|
<t t-if="o.partner_id.vat">UID-Nr.: <span t-esc="o.partner_id.vat"/></t>
|
|
</div>
|
|
</div>
|
|
<div class="col-xs-3">
|
|
<t t-call="dp_reports.company_data"/>
|
|
</div>
|
|
</div>
|
|
<div class="row mt32"/>
|
|
<div class="row height-20">
|
|
<div class="col-xs-3">
|
|
<strong><span class="col-xs-8" style="padding: 0px">Kundennr.:</span></strong>
|
|
<span class="col-xs-4" style="padding: 0px" t-field="o.partner_id.ref"/>
|
|
</div>
|
|
<strong><span class="col-xs-2">Ansprechpartner:</span></strong>
|
|
<span class="col-xs-3" t-field="o.user_id"/>
|
|
<strong><span class="col-xs-2">Positionen:</span></strong>
|
|
<span class="col-xs-2" t-field="o.positions"/>
|
|
</div>
|
|
<div class="row height-20">
|
|
<div class="col-xs-3">
|
|
<strong><span class="col-xs-8" style="padding: 0px">Rechnungsdatum:</span></strong>
|
|
<span class="col-xs-4" style="padding: 0px" t-field="o.date_invoice"/>
|
|
</div>
|
|
<strong><span class="col-xs-2">Email:</span></strong>
|
|
<span class="col-xs-3" t-field="o.user_id.email"/>
|
|
<strong><span class="col-xs-2">Artikel:</span></strong>
|
|
<span class="col-xs-2" t-field="o.num_items"/>
|
|
</div>
|
|
<div class="row height-20">
|
|
<div class="col-xs-3">
|
|
<strong><span class="col-xs-8" style="padding: 0px">Lieferdatum:</span></strong>
|
|
<span class="col-xs-4" style="padding: 0px">?????????</span>
|
|
</div>
|
|
<strong><span class="col-xs-2">Telefon:</span></strong>
|
|
<span class="col-xs-3" t-field="o.user_id.phone"/>
|
|
<strong><span class="col-xs-2">Bezeichnung:</span></strong>
|
|
<span class="col-xs-2" t-field="o.number"/>
|
|
</div>
|
|
<div class="row mt32"/>
|
|
<table class="table table-condensed">
|
|
<t t-set="discount_is_set" t-value="field_set_in_lines(o.invoice_line_ids, 'discount')"/>
|
|
<thead class="table-header">
|
|
<tr>
|
|
<th class="text-center">Pos.</th>
|
|
<th class="text-center">Anzahl</th>
|
|
<th class="text-right">Gewicht</th>
|
|
<th class="text-right"></th>
|
|
<th class="text-left">Artikel</th>
|
|
<th class="text-right">EP</th>
|
|
<th class="text-right" t-if="discount_is_set">Rabatt</th>
|
|
<th class="text-right">Gesamtpreis</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody class="invoice-tbody">
|
|
<t t-set="pos_nr" t-value="0"/>
|
|
<t t-foreach="o.invoice_line_ids" t-as="invoice_line">
|
|
<tr>
|
|
<t t-set="pos_nr" t-value="pos_nr+1"/>
|
|
<td class="text-center">
|
|
<span t-esc="pos_nr"/>
|
|
</td>
|
|
<td class="text-right">
|
|
<span t-field="invoice_line.quantity"/>
|
|
</td>
|
|
<td class="text-right">
|
|
<span t-field="invoice_line.product_id.weight"/> kg
|
|
</td>
|
|
<td class="text-right">
|
|
</td>
|
|
<td rowspan="2" class="text-left">
|
|
<t t-if="invoice_line.product_id.default_code">
|
|
<strong>
|
|
<span t-field="invoice_line.product_id.default_code"/>
|
|
</strong>
|
|
<br/>
|
|
</t>
|
|
<span>
|
|
<strong>Zolltarif Nr.:</strong>
|
|
<span t-field="invoice_line.product_id.intrastat_id"/>
|
|
</span>
|
|
<br/>
|
|
<span t-field="invoice_line.name"/>
|
|
</td>
|
|
<td rowspan="2" class="text-right">
|
|
<span t-field="invoice_line.price_unit"/>
|
|
</td>
|
|
<td rowspan="2" class="text-right" t-if="discount_is_set">
|
|
<span t-field="invoice_line.discount"/>
|
|
</td>
|
|
<td rowspan="2" class="text-right">
|
|
<span t-field="invoice_line.price_subtotal"/>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td colspan="4" style="border: 0;text-align: center;">
|
|
<!-- Fall 5078, Rechnung - keine Bilder mehr
|
|
<img t-if="invoice_line.product_id.image_medium"
|
|
t-att-src="'data:image/png;base64,%s' % invoice_line.product_id.image_medium.decode()"/>
|
|
-->
|
|
</td>
|
|
</tr>
|
|
</t>
|
|
</tbody>
|
|
</table>
|
|
<div class="row">
|
|
<div class="col-xs-4 pull-right">
|
|
<table class="table table-condensed">
|
|
<tbody class="totals-tbody">
|
|
<tr>
|
|
<td>
|
|
Zwischensumme
|
|
</td>
|
|
<td class="text-right">
|
|
<span t-field="o.amount_untaxed"
|
|
t-options='{"widget": "monetary", "display_currency": o.currency_id}'/>
|
|
</td>
|
|
</tr>
|
|
<tr t-foreach="o.tax_line_ids" t-as="tax_line">
|
|
<td>
|
|
<span t-field="tax_line.name"/>
|
|
</td>
|
|
<td class="text-right">
|
|
<span t-field="tax_line.amount"
|
|
t-options='{"widget": "monetary", "display_currency": o.currency_id}'/>
|
|
</td>
|
|
</tr>
|
|
<tr class="amount-total">
|
|
<td>
|
|
<strong>Rechnungsbetrag</strong>
|
|
</td>
|
|
<td class="text-right">
|
|
<strong>
|
|
<span t-field="o.amount_total"
|
|
t-options='{"widget": "monetary", "display_currency": o.currency_id}'/>
|
|
</strong>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<p class="col-xs-12">
|
|
<span t-field="o.comment"/>
|
|
</p>
|
|
<p class="col-xs-12">
|
|
Gesamtgewicht:
|
|
<span t-esc="round(o.weight_total, 2)"/> kg
|
|
<br/>
|
|
</p>
|
|
<p class="col-xs-12" t-if="o.incoterms_id.name">
|
|
Lieferkonditionen:
|
|
<span t-esc="o.incoterms_id.name"/>
|
|
<br/>
|
|
</p>
|
|
<p class="col-xs-12" t-if="o.payment_term_id">
|
|
Zahlungskonditionen:
|
|
<span t-esc="o.payment_term_id.name"/>
|
|
<br/>
|
|
</p>
|
|
<p class="col-xs-12">
|
|
EORI-Nr.:
|
|
<span t-esc="o.user_id.company_id.eori_nr"/>
|
|
<br/>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</t>
|
|
</template>
|
|
|
|
<template id="account.report_invoice">
|
|
<t t-call="web.html_container">
|
|
<t t-foreach="docs" t-as="o">
|
|
<t t-call="dp_reports_account.report_invoice_document" t-lang="o.partner_id.lang"/>
|
|
</t>
|
|
</t>
|
|
</template>
|
|
|
|
</data>
|
|
|
|
<record id="account.account_invoices" model="ir.actions.report">
|
|
<field name="paperformat_id" ref="dp_reports.paperformat_a4_european"/>
|
|
</record>
|
|
|
|
<record id="account.account_invoices_without_payment" model="ir.actions.report">
|
|
<field name="paperformat_id" ref="dp_reports.paperformat_a4_european"/>
|
|
</record>
|
|
</odoo>
|