diff --git a/account_menu/README.rst b/account_menu/README.rst index bceaa9558..cf84e3513 100644 --- a/account_menu/README.rst +++ b/account_menu/README.rst @@ -38,6 +38,10 @@ This module adds all missing menu entries for the **Account** module. * Tax Templates * Fiscal Position Templates +Additionally, this module also enables the option to enable or disable +Anglo-Saxon accounting in the Chart of Account Template form view and +in the Invoicing Settings. + **Table of contents** .. contents:: @@ -53,6 +57,12 @@ To see all the menus, make sure: * The page is running in debug mode +Known issues / Roadmap +====================== + +* Suggest to rename to something like `account_usability` in 15.0, given that + there are now non-menu usability improvements in this module. + Bug Tracker =========== diff --git a/account_menu/__manifest__.py b/account_menu/__manifest__.py index 430a519f8..97354f759 100644 --- a/account_menu/__manifest__.py +++ b/account_menu/__manifest__.py @@ -13,6 +13,7 @@ "depends": ["account"], "data": [ "views/menu.xml", + "views/res_config_settings_views.xml", "views/view_account_account_template.xml", "views/view_account_bank_statement.xml", "views/view_account_chart_template.xml", diff --git a/account_menu/models/__init__.py b/account_menu/models/__init__.py index a154948be..4742b5260 100644 --- a/account_menu/models/__init__.py +++ b/account_menu/models/__init__.py @@ -1,3 +1,4 @@ from . import account_group from . import account_tag from . import account_tax_group +from . import res_config_settings diff --git a/account_menu/models/res_config_settings.py b/account_menu/models/res_config_settings.py new file mode 100644 index 000000000..07b14408b --- /dev/null +++ b/account_menu/models/res_config_settings.py @@ -0,0 +1,17 @@ +# Copyright 2021 Opener B.V. +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +from odoo import fields, models + + +class ResConfigSettings(models.TransientModel): + _inherit = "res.config.settings" + + anglo_saxon_accounting = fields.Boolean( + related="company_id.anglo_saxon_accounting", + readonly=False, + string="Use anglo-saxon accounting", + help=( + "Record the cost of a good as an expense when this good is " + "invoiced to a final customer." + ), + ) diff --git a/account_menu/readme/DESCRIPTION.rst b/account_menu/readme/DESCRIPTION.rst index 788f4db51..04d963b2c 100644 --- a/account_menu/readme/DESCRIPTION.rst +++ b/account_menu/readme/DESCRIPTION.rst @@ -10,3 +10,7 @@ This module adds all missing menu entries for the **Account** module. * Account Templates * Tax Templates * Fiscal Position Templates + +Additionally, this module also enables the option to enable or disable +Anglo-Saxon accounting in the Chart of Account Template form view and +in the Invoicing Settings. diff --git a/account_menu/readme/ROADMAP.rst b/account_menu/readme/ROADMAP.rst new file mode 100644 index 000000000..4bccb6b2b --- /dev/null +++ b/account_menu/readme/ROADMAP.rst @@ -0,0 +1,2 @@ +* Suggest to rename to something like `account_usability` in 15.0, given that + there are now non-menu usability improvements in this module. diff --git a/account_menu/static/description/index.html b/account_menu/static/description/index.html index 580a863b4..3e173d018 100644 --- a/account_menu/static/description/index.html +++ b/account_menu/static/description/index.html @@ -3,7 +3,7 @@ - + Account - Missing Menus