65 lines
2.8 KiB
XML
65 lines
2.8 KiB
XML
<openerp>
|
|
<data>
|
|
<!-- Invoice Body -->
|
|
<template id="report_invoice_document" inherit_id="account.report_invoice_document">
|
|
<th t-if="display_discount" position="replace">
|
|
<th t-if="display_discount and o.sale_order_id.print_discount" class="text-right" groups="sale.group_discount_per_so_line">Disc.(%)</th>
|
|
</th>
|
|
<td t-if="display_discount" position="replace">
|
|
<td t-if="display_discount and o.sale_order_id.print_discount" class="text-right" groups="sale.group_discount_per_so_line">
|
|
<span t-field="l.discount"/>
|
|
</td>
|
|
</td>
|
|
<div t-if="o.date_invoice" position="replace">
|
|
<div class="col-xs-2" t-if="o.date_invoice">
|
|
<strong>Invoice Date:</strong>
|
|
<p t-field="o.date_invoice"/>
|
|
</div>
|
|
</div>
|
|
<div t-if="o.origin" position="replace">
|
|
<div class="col-xs-2" t-if="o.origin">
|
|
<strong>Source:</strong>
|
|
<p t-field="o.origin"/>
|
|
</div>
|
|
</div>
|
|
<div t-if="o.date_due and o.type == 'out_invoice' and (o.state == 'open' or o.state == 'paid')" position="replace"/>
|
|
<xpath expr="//table[@class='table table-condensed']/thead/tr/th" position='replace'>
|
|
<th>Description</th>
|
|
</xpath>
|
|
<div t-if="o.tax_line_ids" position="replace"/>
|
|
<p t-if="o.payment_term_id" position="replace">
|
|
<p t-if="o.payment_term_id">
|
|
<strong><span t-field="o.payment_term_id.note"/></strong>
|
|
</p>
|
|
</p>
|
|
</template>
|
|
<!-- Render Report with Header -->
|
|
<template id="account.report_invoice">
|
|
<t t-call="report.html_container">
|
|
<t t-set="header" t-value="1"/>
|
|
<t t-foreach="docs" t-as="o">
|
|
<t t-call="dp_report.report_invoice_document" t-lang="o.partner_id.lang">
|
|
</t>
|
|
</t>
|
|
</t>
|
|
</template>
|
|
<!-- Render Report without Header -->
|
|
<template id="report_invoice_blank">
|
|
<t t-call="report.html_container">
|
|
<t t-set="header" t-value="0"/>
|
|
<t t-foreach="docs" t-as="o">
|
|
<t t-call="dp_report.report_invoice_document" t-lang="o.partner_id.lang">
|
|
</t>
|
|
</t>
|
|
</t>
|
|
</template>
|
|
<!-- Create new Report -->
|
|
<report id="dp_report_invoice_blank"
|
|
string="Rechnung Ohne Logo"
|
|
model="account.invoice"
|
|
report_type="qweb-pdf"
|
|
name="dp_report.report_invoice_blank"
|
|
file="dp_report.report_invoice_blank"/>
|
|
|
|
</data>
|
|
</openerp> |