[IMP] l10n_au: update fiscal year last day, label display, etc

task-3187734

closes odoo/odoo#115163

X-original-commit: 65dacfc17bec5feba1216354c71ca542c1b762b2
Signed-off-by: Nicolas Viseur (vin) <vin@odoo.com>
This commit is contained in:
Tommy (tong)
2023-03-15 07:27:40 +01:00
parent 9964ae2f38
commit 2b81f595cc
5 changed files with 33 additions and 9 deletions
-3
View File
@@ -1,6 +1,3 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
# Copyright (C) 2015 Willow IT Pty Ltd (<http://www.willowit.com.au>).
from . import models
+4 -6
View File
@@ -1,6 +1,7 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
'name': 'Australian - Accounting',
'name': 'Australia - Accounting',
'version': '1.1',
'category': 'Accounting/Localizations/Account Charts',
'description': """
@@ -13,17 +14,14 @@ Also:
- activates a number of regional currencies.
- sets up Australian taxes.
""",
'author': 'Richard deMeester - Willow IT',
'website': 'http://www.willowit.com',
'depends': [
'account',
],
'depends': ['account'],
'data': [
'data/account_tax_report_data.xml',
'data/account_tax_template_data.xml',
'data/res_currency_data.xml',
'views/menuitems.xml',
'views/report_invoice.xml',
'views/res_company_views.xml',
],
'demo': [
'demo/demo_company.xml',
+1
View File
@@ -1,3 +1,4 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from . import template_au
from . import account_move
+2
View File
@@ -33,5 +33,7 @@ class AccountChartTemplate(models.AbstractModel):
'expense_currency_exchange_account_id': 'au_61630',
'account_journal_early_pay_discount_loss_account_id': 'au_61610',
'account_journal_early_pay_discount_gain_account_id': 'au_61620',
'fiscalyear_last_month': '6',
'fiscalyear_last_day': 30,
},
}
@@ -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>