mirror of
https://github.com/bringout/oca-ocb-l10n_asia-pacific.git
synced 2026-04-27 01:42:04 +02:00
Initial commit: L10N_Asia Pacific packages
This commit is contained in:
commit
54c86b612c
828 changed files with 58224 additions and 0 deletions
|
|
@ -0,0 +1,56 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<template id="report_invoice_document" inherit_id="account.report_invoice_document" primary="True">
|
||||
<xpath expr="//div[@name='address_not_same_as_shipping']//span[@t-field='o.partner_id.vat']" position="after">
|
||||
<span t-esc="o.partner_id.l10n_th_branch_name"/>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//div[@name='address_same_as_shipping']//span[@t-field='o.partner_id.vat']" position="after">
|
||||
<span t-esc="o.partner_id.l10n_th_branch_name"/>
|
||||
</xpath>
|
||||
<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>
|
||||
</template>
|
||||
|
||||
<template id="report_commercial_invoice">
|
||||
<t t-call="web.html_container">
|
||||
<t t-foreach="docs" t-as="o">
|
||||
<t t-set="lang" t-value="o.partner_id.lang"/>
|
||||
<t t-call="account.report_invoice_document" t-lang="lang"/>
|
||||
</t>
|
||||
</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>
|
||||
<field name="report_type">qweb-pdf</field>
|
||||
<field name="report_name">l10n_th.report_commercial_invoice</field>
|
||||
<field name="report_file">l10n_th.report_commercial_invoice</field>
|
||||
<field name="binding_model_id" ref="account.model_account_move"/>
|
||||
<field name="binding_type">report</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
Loading…
Add table
Add a link
Reference in a new issue