mirror of
https://github.com/bringout/oca-ocb-l10n_asia-pacific.git
synced 2026-04-26 00:22:01 +02:00
19.0 vanilla
This commit is contained in:
parent
7dc55599c6
commit
7f43bbbfcc
650 changed files with 45260 additions and 33436 deletions
|
|
@ -11,12 +11,9 @@
|
|||
<xpath expr="//div[@name='no_shipping']//span[@t-field='o.partner_id.vat']" position="after">
|
||||
<span t-esc="o.partner_id.l10n_th_branch_name"/>
|
||||
</xpath>
|
||||
<xpath expr="//h2/span[contains(@t-if, 'posted')]" position="replace">
|
||||
<t t-if="o.move_type == 'out_invoice' and o.state == 'posted'">
|
||||
<span t-if="o.company_id.account_fiscal_country_id.code == 'TH' and not commercial_invoice">Tax Invoice</span>
|
||||
<span t-else="">Invoice</span>
|
||||
</t>
|
||||
</xpath>
|
||||
<t name="invoice_title" position="replace">
|
||||
<t name="invoice_title">Tax Invoice</t>
|
||||
</t>
|
||||
</template>
|
||||
|
||||
<template id="report_commercial_invoice">
|
||||
|
|
@ -28,21 +25,6 @@
|
|||
</t>
|
||||
</template>
|
||||
|
||||
<template id="report_invoice" inherit_id="account.report_invoice">
|
||||
<xpath expr='//t[@t-call="account.report_invoice_document"]' position="after">
|
||||
<t t-if="o._get_name_invoice_report() == 'l10n_th.report_invoice_document'"
|
||||
t-call="l10n_th.report_invoice_document" t-lang="lang"/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="report_invoice_with_payments" inherit_id="account.report_invoice_with_payments">
|
||||
<xpath expr='//t[@t-call="account.report_invoice_document"]' position="after">
|
||||
<t t-if="o._get_name_invoice_report() == 'l10n_th.report_invoice_document'"
|
||||
t-call="l10n_th.report_invoice_document" t-lang="lang"/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
|
||||
<record id="action_report_commercial_invoice" model="ir.actions.report">
|
||||
<field name="name">Commercial Invoice</field>
|
||||
<field name="model">account.move</field>
|
||||
|
|
@ -53,4 +35,12 @@
|
|||
<field name="binding_type">report</field>
|
||||
</record>
|
||||
|
||||
<!-- Workaround for Studio reports, see odoo/odoo#60660 -->
|
||||
<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_th.report_invoice_document'"
|
||||
t-call="l10n_th.report_invoice_document"
|
||||
t-lang="lang"/>
|
||||
</xpath>
|
||||
</template>
|
||||
</odoo>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue