From 38f03c4c8a4a49bc6a3e374e1dc3fabeff087819 Mon Sep 17 00:00:00 2001 From: william Date: Thu, 4 Jun 2020 10:10:58 +0000 Subject: [PATCH] [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 --- addons/account/__init__.py | 2 ++ addons/l10n_au/__manifest__.py | 7 ++++--- addons/l10n_au/views/menuitems.xml | 4 ++++ 3 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 addons/l10n_au/views/menuitems.xml 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 @@ + + + +