diff --git a/account_menu/README.rst b/account_menu/README.rst index 8317a793c..0bfb400cf 100644 --- a/account_menu/README.rst +++ b/account_menu/README.rst @@ -14,19 +14,25 @@ Account - Missing Menus :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Faccount--financial--tools-lightgray.png?logo=github - :target: https://github.com/OCA/account-financial-tools/tree/12.0/account_menu + :target: https://github.com/OCA/account-financial-tools/tree/13.0/account_menu :alt: OCA/account-financial-tools .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/account-financial-tools-12-0/account-financial-tools-12-0-account_menu + :target: https://translation.odoo-community.org/projects/account-financial-tools-13-0/account-financial-tools-13-0-account_menu :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/92/12.0 + :target: https://runbot.odoo-community.org/runbot/92/13.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| This module adds all missing menu entries for **Account** module. +* Chart of Account Templates +* Account Types +* Account Tags +* Account Group +* Bank Statements + **Table of contents** .. contents:: @@ -42,30 +48,13 @@ To see all the menus, make sure: * The page is running in debug mode -Known issues / Roadmap -====================== - -In v12, this module installs 4 modules : - -* ``account_coa_menu`` -* ``account_group_menu`` -* ``account_tag_menu`` -* ``account_type_menu`` - -* Adds menu for bank statements. - -For V13+, we could imagine to have a single module that creates all the -missing menus (and actions). - -Ref : https://github.com/OCA/account-financial-tools/issues/857 - Bug Tracker =========== Bugs are tracked on `GitHub Issues `_. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -81,6 +70,7 @@ Contributors ~~~~~~~~~~~~ * Sylvain LE GAL +* Raf Ven Maintainers ~~~~~~~~~~~ @@ -95,6 +85,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use. -This module is part of the `OCA/account-financial-tools `_ project on GitHub. +This module is part of the `OCA/account-financial-tools `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/account_menu/__init__.py b/account_menu/__init__.py index e69de29bb..0650744f6 100644 --- a/account_menu/__init__.py +++ b/account_menu/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/account_menu/__manifest__.py b/account_menu/__manifest__.py index b14294057..98cdd53f3 100644 --- a/account_menu/__manifest__.py +++ b/account_menu/__manifest__.py @@ -3,26 +3,26 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { - 'name': 'Account - Missing Menus', - 'version': '12.0.1.0.0', - 'category': 'Accounting', - 'license': 'AGPL-3', - 'summary': "Adds missing menu entries for Account module", - 'author': "GRAP, Odoo Community Association (OCA)", - 'website': 'https://github.com/OCA/account-financial-tools', - 'depends': [ - 'account', - 'account_coa_menu', - 'account_group_menu', - 'account_tag_menu', - 'account_type_menu', + "name": "Account - Missing Menus", + "version": "13.0.1.0.0", + "category": "Accounting", + "license": "AGPL-3", + "summary": "Adds missing menu entries for Account module", + "author": "GRAP, Odoo Community Association (OCA)", + "website": "https://github.com/OCA/account-financial-tools", + "depends": ["account"], + "data": [ + "views/menu.xml", + "views/view_account_account_template.xml", + "views/view_account_bank_statement.xml", + "views/view_account_chart_template.xml", + "views/view_account_fiscal_position_template.xml", + "views/view_account_group.xml", + "views/view_account_tag.xml", + "views/view_account_tax_group.xml", + "views/view_account_tax_template.xml", + "views/view_account_type.xml", ], - 'data': [ - 'views/menu.xml', - 'views/view_account_bank_statement.xml', - ], - 'demo': [ - 'demo/res_groups.xml', - ], - 'installable': True, + "demo": ["demo/res_groups.xml"], + "installable": True, } diff --git a/account_menu/demo/res_groups.xml b/account_menu/demo/res_groups.xml index 23ebd8978..0b6b4b2f5 100644 --- a/account_menu/demo/res_groups.xml +++ b/account_menu/demo/res_groups.xml @@ -11,4 +11,3 @@ - diff --git a/account_menu/models/__init__.py b/account_menu/models/__init__.py new file mode 100644 index 000000000..a154948be --- /dev/null +++ b/account_menu/models/__init__.py @@ -0,0 +1,3 @@ +from . import account_group +from . import account_tag +from . import account_tax_group diff --git a/account_menu/models/account_group.py b/account_menu/models/account_group.py new file mode 100644 index 000000000..3d8bf3462 --- /dev/null +++ b/account_menu/models/account_group.py @@ -0,0 +1,15 @@ +# Copyright 2018 FOREST AND BIOMASS ROMANIA SA +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from odoo import fields, models + + +class AccountGroup(models.Model): + _inherit = "account.group" + + account_ids = fields.One2many( + comodel_name="account.account", + inverse_name="group_id", + string="Accounts", + help="Assigned accounts.", + ) diff --git a/account_menu/models/account_tag.py b/account_menu/models/account_tag.py new file mode 100644 index 000000000..2d5032aab --- /dev/null +++ b/account_menu/models/account_tag.py @@ -0,0 +1,21 @@ +# Copyright 2018 FOREST AND BIOMASS ROMANIA SA +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from odoo import fields, models + + +class AccountAccountTag(models.Model): + _inherit = "account.account.tag" + + account_ids = fields.Many2many( + comodel_name="account.account", + relation="account_account_account_tag", + string="Accounts", + help="Assigned accounts for custom reporting", + ) + tax_ids = fields.Many2many( + comodel_name="account.tax", + relation="account_tax_account_tag", + string="Taxes", + help="Assigned taxes for custom reporting", + ) diff --git a/account_menu/models/account_tax_group.py b/account_menu/models/account_tax_group.py new file mode 100644 index 000000000..3313e3af8 --- /dev/null +++ b/account_menu/models/account_tax_group.py @@ -0,0 +1,15 @@ +# Copyright 2018 FOREST AND BIOMASS ROMANIA SA +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from odoo import fields, models + + +class AccountTaxGroup(models.Model): + _inherit = "account.tax.group" + + tax_ids = fields.One2many( + comodel_name="account.tax", + inverse_name="tax_group_id", + string="Taxes", + help="Assigned taxes.", + ) diff --git a/account_menu/readme/CONTRIBUTORS.rst b/account_menu/readme/CONTRIBUTORS.rst index 9f76a75bc..9d38778af 100644 --- a/account_menu/readme/CONTRIBUTORS.rst +++ b/account_menu/readme/CONTRIBUTORS.rst @@ -1 +1,2 @@ * Sylvain LE GAL +* Raf Ven diff --git a/account_menu/readme/DESCRIPTION.rst b/account_menu/readme/DESCRIPTION.rst index f51ea4be8..3f1beb67e 100644 --- a/account_menu/readme/DESCRIPTION.rst +++ b/account_menu/readme/DESCRIPTION.rst @@ -1 +1,7 @@ This module adds all missing menu entries for **Account** module. + +* Chart of Account Templates +* Account Types +* Account Tags +* Account Group +* Bank Statements diff --git a/account_menu/readme/ROADMAP.rst b/account_menu/readme/ROADMAP.rst deleted file mode 100644 index 9be6a6326..000000000 --- a/account_menu/readme/ROADMAP.rst +++ /dev/null @@ -1,13 +0,0 @@ -In v12, this module installs 4 modules : - -* ``account_coa_menu`` -* ``account_group_menu`` -* ``account_tag_menu`` -* ``account_type_menu`` - -* Adds menu for bank statements. - -For V13+, we could imagine to have a single module that creates all the -missing menus (and actions). - -Ref : https://github.com/OCA/account-financial-tools/issues/857 diff --git a/account_menu/static/description/index.html b/account_menu/static/description/index.html index 5abf99d60..dd6b906f9 100644 --- a/account_menu/static/description/index.html +++ b/account_menu/static/description/index.html @@ -3,7 +3,7 @@ - + Account - Missing Menus