29 lines
1.7 KiB
XML
29 lines
1.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<template id="report_invoice_document" inherit_id="account.report_invoice_document" primary="True">
|
|
<xpath expr="//div[@id='informations']" position="before">
|
|
<t t-set="forced_vat" t-value="o.company_id.vat"/>
|
|
</xpath>
|
|
<xpath expr="//div[hasclass('page')]/t[@t-set='layout_document_title']" position="replace">
|
|
<t t-set="layout_document_title">
|
|
<span t-if="o.move_type == 'out_invoice' and o.state == 'posted'">Fiscal Tax Invoice</span>
|
|
<span t-elif="o.move_type == 'out_invoice' and o.state == 'draft'">Draft Tax Invoice</span>
|
|
<span t-elif="o.move_type == 'out_invoice' and o.state == 'cancel'">Cancelled Tax Invoice</span>
|
|
<span t-elif="o.move_type == 'out_refund' and o.state == 'posted'">Credit Note</span>
|
|
<span t-elif="o.move_type == 'out_refund' and o.state == 'draft'">Draft Credit Note</span>
|
|
<span t-elif="o.move_type == 'out_refund' and o.state == 'cancel'">Cancelled Credit Note</span>
|
|
<span t-elif="o.move_type == 'in_refund'">Vendor Credit Note</span>
|
|
<span t-elif="o.move_type == 'in_invoice'">Vendor Bill</span>
|
|
<span t-if="o.name != '/'" t-field="o.name"/>
|
|
</t>
|
|
</xpath>
|
|
</template>
|
|
<template id="report_invoice" inherit_id="account.report_invoice">
|
|
<xpath expr='//t[@t-call="account.report_invoice_document"]' position="after">
|
|
<t t-elif="o._get_name_invoice_report() == 'l10n_zm_account.report_invoice_document'"
|
|
t-call="l10n_zm_account.report_invoice_document"
|
|
t-lang="lang"/>
|
|
</xpath>
|
|
</template>
|
|
</odoo>
|