mirror of
https://github.com/bringout/oca-ocb-l10n_asia-pacific.git
synced 2026-04-27 16:02: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,4 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<menuitem id="account_reports_au_statements_menu" name="Australia" parent="account.menu_finance_reports" sequence="5" groups="account.group_account_readonly"/>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<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_au.report_invoice_document'"
|
||||
t-call="l10n_au.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_au.report_invoice_document'"
|
||||
t-call="l10n_au.report_invoice_document" t-lang="lang"/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="report_invoice_document" inherit_id="account.report_invoice_document" primary="True">
|
||||
<xpath expr="//div[hasclass('page')]/h2" position="replace">
|
||||
<h2>
|
||||
<span t-if="o.move_type == 'out_invoice' and o.state == 'posted'">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'">Tax Credit Note</span>
|
||||
<span t-elif="o.move_type == 'in_refund'">Tax Vendor Credit Note</span>
|
||||
<span t-elif="o.move_type == 'in_invoice'">Tax Vendor Bill</span>
|
||||
<span t-if="o.name != '/'" t-field="o.name"/>
|
||||
</h2>
|
||||
</xpath>
|
||||
</template>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<record id="view_company_form" model="ir.ui.view">
|
||||
<field name="name">res.company.form.inherit.l10n_au</field>
|
||||
<field name="model">res.company</field>
|
||||
<field name="inherit_id" ref="base.view_company_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='vat']" position="attributes">
|
||||
<attribute name="nolabel">1</attribute>
|
||||
</xpath>
|
||||
<field name="vat" position="before">
|
||||
<label for="vat" attrs="{'invisible':[('country_code', '=', 'AU')]}" />
|
||||
<label for="vat" string="ABN" attrs="{'invisible':[('country_code', '!=', 'AU')]}" />
|
||||
</field>
|
||||
<xpath expr="//field[@name='company_registry']" position="attributes">
|
||||
<attribute name="nolabel">1</attribute>
|
||||
</xpath>
|
||||
<field name="company_registry" position="before">
|
||||
<label for="company_registry" attrs="{'invisible':[('country_code', '=', 'AU')]}" />
|
||||
<label for="company_registry" string="ACN" attrs="{'invisible':[('country_code', '!=', 'AU')]}" />
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
Loading…
Add table
Add a link
Reference in a new issue