summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorwilliam <wan@odoo.com>2020-06-04 10:10:58 +0000
committerwilliam <wan@odoo.com>2020-06-15 14:09:17 +0000
commit38f03c4c8a4a49bc6a3e374e1dc3fabeff087819 (patch)
treec347ecbc1141513c6393a18f484a6022a9f25953 /addons
parent236600fd5ef2dfef9a77c309f04c98c3bfcf8684 (diff)
[IMP] l10n_au: add Australian reports menuitem
Done in commuity so that other modules can inherit from it, but only used in enterprise's l10n_au_reports for now. closes odoo/odoo#49581 Related: odoo/enterprise#9907 Signed-off-by: Josse Colpaert <jco@openerp.com>
Diffstat (limited to 'addons')
-rw-r--r--addons/account/__init__.py2
-rw-r--r--addons/l10n_au/__manifest__.py7
-rw-r--r--addons/l10n_au/views/menuitems.xml4
3 files changed, 10 insertions, 3 deletions
diff --git a/addons/account/__init__.py b/addons/account/__init__.py
index 0d8cf86e69f..d92a34d1366 100644
--- a/addons/account/__init__.py
+++ b/addons/account/__init__.py
@@ -48,6 +48,8 @@ def _auto_install_l10n(cr, registry):
module_list.append('base_vat')
if country_code == 'MX':
module_list.append('l10n_mx_edi')
+ if country_code == 'AU':
+ module_list.append('account_reports_cash_basis')
# SEPA zone countries will be using SEPA
sepa_zone = env.ref('base.sepa_zone', raise_if_not_found=False)
diff --git a/addons/l10n_au/__manifest__.py b/addons/l10n_au/__manifest__.py
index cd7d4482d82..25b530ffab1 100644
--- a/addons/l10n_au/__manifest__.py
+++ b/addons/l10n_au/__manifest__.py
@@ -30,8 +30,9 @@ Also:
'data/account_fiscal_position_tax_template_data.xml',
'data/account_chart_template_configure_data.xml',
'data/res_currency_data.xml',
+ 'views/menuitems.xml',
],
- 'demo': [
- 'demo/demo_company.xml',
- ],
+ 'demo': [
+ 'demo/demo_company.xml',
+ ],
}
diff --git a/addons/l10n_au/views/menuitems.xml b/addons/l10n_au/views/menuitems.xml
new file mode 100644
index 00000000000..0dac49e4b05
--- /dev/null
+++ b/addons/l10n_au/views/menuitems.xml
@@ -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="0" groups="account.group_account_readonly"/>
+</odoo>