diff --git a/account_group_menu/README.rst b/account_group_menu/README.rst new file mode 100644 index 000000000..6b5885b6c --- /dev/null +++ b/account_group_menu/README.rst @@ -0,0 +1,75 @@ +================== +Account Group Menu +================== + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png + :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_group_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_group_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 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module adds menu entries **Account Groups** and **Account Tax Groups** under *Invoicing > Configuration > Accounting*, +because this menu entry doesn't exists in the official *account* module of Odoo 12. + +**Table of contents** + +.. contents:: + :local: + +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 `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* Forest and Biomass Romania + +Contributors +~~~~~~~~~~~~ + +* Fekete Mihai +* Raf Ven + +Maintainers +~~~~~~~~~~~ + +This module is maintained by the OCA. + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +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. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/account_group_menu/__init__.py b/account_group_menu/__init__.py new file mode 100644 index 000000000..0650744f6 --- /dev/null +++ b/account_group_menu/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/account_group_menu/__manifest__.py b/account_group_menu/__manifest__.py new file mode 100644 index 000000000..e71380aad --- /dev/null +++ b/account_group_menu/__manifest__.py @@ -0,0 +1,18 @@ +# Copyright 2018 Forest and Biomass Romania +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +{ + 'name': 'Account Group Menu', + 'version': '12.0.1.0.0', + 'category': 'Accounting', + 'license': 'AGPL-3', + 'summary': "Adds menu entries for Account Group and Tax Group", + 'author': "Forest and Biomass Romania, Odoo Community Association (OCA)", + 'website': 'https://github.com/OCA/account-financial-tools', + 'depends': ['account'], + 'data': ['views/account_group.xml', + 'views/account_tax_group.xml'], + 'demo': ['demo/account_group.xml', + 'demo/account_tax_group.xml'], + 'installable': True, +} diff --git a/account_group_menu/demo/account_group.xml b/account_group_menu/demo/account_group.xml new file mode 100644 index 000000000..0fc941b37 --- /dev/null +++ b/account_group_menu/demo/account_group.xml @@ -0,0 +1,52 @@ + + + + + All Company + + + Class 1 + T1 + + + + Class 11 + T11 + + + + Class 2 + T2 + + + + + Account 105 + T105 + + + + + Account 110 + T110 + + + + + Account 111 + T111 + + + + + Account 112 + T112 + + + + + Account 130 + T130 + + + diff --git a/account_group_menu/demo/account_tax_group.xml b/account_group_menu/demo/account_tax_group.xml new file mode 100644 index 000000000..2752ad83f --- /dev/null +++ b/account_group_menu/demo/account_tax_group.xml @@ -0,0 +1,94 @@ + + + + + VAT 5% + 1 + + + VAT 9% + 2 + + + VAT 19% + 2 + + + VAT Cash Basis + 4 + + + + 11 + VAT Colected 5% + VAT Colected 5% + 5 + percent + sale + + + + + + 12 + VAT Colected 9% + VAT Colected 9% + 9 + percent + sale + + + + + + 13 + VAT Colected 19% + VAT Colected 19% + 19 + percent + sale + + + + + + + 21 + VAT Colected Cash-Basis 5% + VAT Colected Cash-Basis 5% + 5 + percent + sale + on_payment + + + + + + + 22 + VAT Colected Cash-Basis 9% + VAT Colected Cash-Basis 9% + 9 + percent + sale + on_payment + + + + + + + 23 + VAT Colected Cash-Basis 19% + VAT Colected Cash-Basis 19% + 19 + percent + sale + on_payment + + + + + + diff --git a/account_group_menu/i18n/account_group_menu.pot b/account_group_menu/i18n/account_group_menu.pot new file mode 100644 index 000000000..ce31240b0 --- /dev/null +++ b/account_group_menu/i18n/account_group_menu.pot @@ -0,0 +1,84 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_group_menu +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 11.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: account_group_menu +#: model:ir.ui.menu,name:account_group_menu.account_group_menu +msgid "Account Groups" +msgstr "" + +#. module: account_group_menu +#: model:ir.ui.view,arch_db:account_group_menu.view_account_tax_group_form +#: model:ir.ui.view,arch_db:account_group_menu.view_account_tax_group_search +#: model:ir.ui.view,arch_db:account_group_menu.view_account_tax_group_tree +msgid "Account Tax Group" +msgstr "" + +#. module: account_group_menu +#: model:ir.actions.act_window,name:account_group_menu.action_account_tax_group_tree +#: model:ir.ui.menu,name:account_group_menu.account_tax_group_menu +#: model:ir.ui.view,arch_db:account_group_menu.view_account_tax_group_search +msgid "Account Tax Groups" +msgstr "" + +#. module: account_group_menu +#: model:ir.model.fields,field_description:account_group_menu.field_account_group_account_ids +msgid "Accounts" +msgstr "" + +#. module: account_group_menu +#: model:ir.model.fields,help:account_group_menu.field_account_group_account_ids +msgid "Assigned accounts." +msgstr "" + +#. module: account_group_menu +#: model:ir.model.fields,help:account_group_menu.field_account_tax_group_tax_ids +msgid "Assigned taxes." +msgstr "" + +#. module: account_group_menu +#: model:ir.model.fields,field_description:account_group_menu.field_account_tax_group_tax_ids +msgid "Taxes" +msgstr "" + +#. module: account_group_menu +#: model:account.tax.group,name:account_group_menu.demo_account_tax_group_3 +msgid "VAT 19%" +msgstr "" + +#. module: account_group_menu +#: model:account.tax.group,name:account_group_menu.demo_account_tax_group_1 +msgid "VAT 5%" +msgstr "" + +#. module: account_group_menu +#: model:account.tax.group,name:account_group_menu.demo_account_tax_group_2 +msgid "VAT 9%" +msgstr "" + +#. module: account_group_menu +#: model:account.tax.group,name:account_group_menu.demo_account_tax_group_4 +msgid "VAT Cash Basis" +msgstr "" + +#. module: account_group_menu +#: model:ir.model,name:account_group_menu.model_account_group +msgid "account.group" +msgstr "" + +#. module: account_group_menu +#: model:ir.model,name:account_group_menu.model_account_tax_group +msgid "account.tax.group" +msgstr "" + diff --git a/account_group_menu/i18n/ar.po b/account_group_menu/i18n/ar.po new file mode 100644 index 000000000..ff8df1b7b --- /dev/null +++ b/account_group_menu/i18n/ar.po @@ -0,0 +1,87 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_group_menu +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 11.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2018-06-30 07:01+0000\n" +"Last-Translator: Osoul \n" +"Language-Team: none\n" +"Language: ar\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 " +"&& n%100<=10 ? 3 : n%100>=11 ? 4 : 5;\n" +"X-Generator: Weblate 3.0.1\n" + +#. module: account_group_menu +#: model:ir.ui.menu,name:account_group_menu.account_group_menu +msgid "Account Groups" +msgstr "مجموعات الحسابات" + +#. module: account_group_menu +#: model:ir.ui.view,arch_db:account_group_menu.view_account_tax_group_form +#: model:ir.ui.view,arch_db:account_group_menu.view_account_tax_group_search +#: model:ir.ui.view,arch_db:account_group_menu.view_account_tax_group_tree +msgid "Account Tax Group" +msgstr "مجموعة الضرائب" + +#. module: account_group_menu +#: model:ir.actions.act_window,name:account_group_menu.action_account_tax_group_tree +#: model:ir.ui.menu,name:account_group_menu.account_tax_group_menu +#: model:ir.ui.view,arch_db:account_group_menu.view_account_tax_group_search +msgid "Account Tax Groups" +msgstr "مجموعات الضرائب" + +#. module: account_group_menu +#: model:ir.model.fields,field_description:account_group_menu.field_account_group_account_ids +msgid "Accounts" +msgstr "الحسابات" + +#. module: account_group_menu +#: model:ir.model.fields,help:account_group_menu.field_account_group_account_ids +msgid "Assigned accounts." +msgstr "الحسابات في المجموعة." + +#. module: account_group_menu +#: model:ir.model.fields,help:account_group_menu.field_account_tax_group_tax_ids +msgid "Assigned taxes." +msgstr "الضرائب في المجموعة." + +#. module: account_group_menu +#: model:ir.model.fields,field_description:account_group_menu.field_account_tax_group_tax_ids +msgid "Taxes" +msgstr "الضرائب" + +#. module: account_group_menu +#: model:account.tax.group,name:account_group_menu.demo_account_tax_group_3 +msgid "VAT 19%" +msgstr "ضريبة 19٪" + +#. module: account_group_menu +#: model:account.tax.group,name:account_group_menu.demo_account_tax_group_1 +msgid "VAT 5%" +msgstr "ضريبة 5٪" + +#. module: account_group_menu +#: model:account.tax.group,name:account_group_menu.demo_account_tax_group_2 +msgid "VAT 9%" +msgstr "ضريبة 9٪" + +#. module: account_group_menu +#: model:account.tax.group,name:account_group_menu.demo_account_tax_group_4 +msgid "VAT Cash Basis" +msgstr "ضريبة على النقدي" + +#. module: account_group_menu +#: model:ir.model,name:account_group_menu.model_account_group +msgid "account.group" +msgstr "" + +#. module: account_group_menu +#: model:ir.model,name:account_group_menu.model_account_tax_group +msgid "account.tax.group" +msgstr "" diff --git a/account_group_menu/i18n/de.po b/account_group_menu/i18n/de.po new file mode 100644 index 000000000..dd55bc052 --- /dev/null +++ b/account_group_menu/i18n/de.po @@ -0,0 +1,88 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_group_menu +# +# Translators: +# OCA Transbot , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 11.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-03-30 02:39+0000\n" +"PO-Revision-Date: 2018-03-30 02:39+0000\n" +"Last-Translator: OCA Transbot , 2018\n" +"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n" +"Language: de\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: account_group_menu +#: model:ir.ui.menu,name:account_group_menu.account_group_menu +msgid "Account Groups" +msgstr "" + +#. module: account_group_menu +#: model:ir.ui.view,arch_db:account_group_menu.view_account_tax_group_form +#: model:ir.ui.view,arch_db:account_group_menu.view_account_tax_group_search +#: model:ir.ui.view,arch_db:account_group_menu.view_account_tax_group_tree +msgid "Account Tax Group" +msgstr "" + +#. module: account_group_menu +#: model:ir.actions.act_window,name:account_group_menu.action_account_tax_group_tree +#: model:ir.ui.menu,name:account_group_menu.account_tax_group_menu +#: model:ir.ui.view,arch_db:account_group_menu.view_account_tax_group_search +msgid "Account Tax Groups" +msgstr "" + +#. module: account_group_menu +#: model:ir.model.fields,field_description:account_group_menu.field_account_group_account_ids +msgid "Accounts" +msgstr "Konten" + +#. module: account_group_menu +#: model:ir.model.fields,help:account_group_menu.field_account_group_account_ids +msgid "Assigned accounts." +msgstr "" + +#. module: account_group_menu +#: model:ir.model.fields,help:account_group_menu.field_account_tax_group_tax_ids +msgid "Assigned taxes." +msgstr "" + +#. module: account_group_menu +#: model:ir.model.fields,field_description:account_group_menu.field_account_tax_group_tax_ids +msgid "Taxes" +msgstr "" + +#. module: account_group_menu +#: model:account.tax.group,name:account_group_menu.demo_account_tax_group_3 +msgid "VAT 19%" +msgstr "" + +#. module: account_group_menu +#: model:account.tax.group,name:account_group_menu.demo_account_tax_group_1 +msgid "VAT 5%" +msgstr "" + +#. module: account_group_menu +#: model:account.tax.group,name:account_group_menu.demo_account_tax_group_2 +msgid "VAT 9%" +msgstr "" + +#. module: account_group_menu +#: model:account.tax.group,name:account_group_menu.demo_account_tax_group_4 +msgid "VAT Cash Basis" +msgstr "" + +#. module: account_group_menu +#: model:ir.model,name:account_group_menu.model_account_group +msgid "account.group" +msgstr "" + +#. module: account_group_menu +#: model:ir.model,name:account_group_menu.model_account_tax_group +msgid "account.tax.group" +msgstr "" diff --git a/account_group_menu/i18n/fr.po b/account_group_menu/i18n/fr.po new file mode 100644 index 000000000..e0927baa1 --- /dev/null +++ b/account_group_menu/i18n/fr.po @@ -0,0 +1,89 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_group_menu +# +# Translators: +# OCA Transbot , 2018 +# Quentin THEURET , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 11.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-04-06 02:40+0000\n" +"PO-Revision-Date: 2018-04-06 02:40+0000\n" +"Last-Translator: Quentin THEURET , 2018\n" +"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n" +"Language: fr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: account_group_menu +#: model:ir.ui.menu,name:account_group_menu.account_group_menu +msgid "Account Groups" +msgstr "Groupes de comptes" + +#. module: account_group_menu +#: model:ir.ui.view,arch_db:account_group_menu.view_account_tax_group_form +#: model:ir.ui.view,arch_db:account_group_menu.view_account_tax_group_search +#: model:ir.ui.view,arch_db:account_group_menu.view_account_tax_group_tree +msgid "Account Tax Group" +msgstr "Groupe des comptes de taxes" + +#. module: account_group_menu +#: model:ir.actions.act_window,name:account_group_menu.action_account_tax_group_tree +#: model:ir.ui.menu,name:account_group_menu.account_tax_group_menu +#: model:ir.ui.view,arch_db:account_group_menu.view_account_tax_group_search +msgid "Account Tax Groups" +msgstr "Groupes des comptes de taxes" + +#. module: account_group_menu +#: model:ir.model.fields,field_description:account_group_menu.field_account_group_account_ids +msgid "Accounts" +msgstr "Comptes" + +#. module: account_group_menu +#: model:ir.model.fields,help:account_group_menu.field_account_group_account_ids +msgid "Assigned accounts." +msgstr "Comptes assignés." + +#. module: account_group_menu +#: model:ir.model.fields,help:account_group_menu.field_account_tax_group_tax_ids +msgid "Assigned taxes." +msgstr "Taxes assignées." + +#. module: account_group_menu +#: model:ir.model.fields,field_description:account_group_menu.field_account_tax_group_tax_ids +msgid "Taxes" +msgstr "Taxes" + +#. module: account_group_menu +#: model:account.tax.group,name:account_group_menu.demo_account_tax_group_3 +msgid "VAT 19%" +msgstr "TVA 19%" + +#. module: account_group_menu +#: model:account.tax.group,name:account_group_menu.demo_account_tax_group_1 +msgid "VAT 5%" +msgstr "TVA 5%" + +#. module: account_group_menu +#: model:account.tax.group,name:account_group_menu.demo_account_tax_group_2 +msgid "VAT 9%" +msgstr "TVA 9%" + +#. module: account_group_menu +#: model:account.tax.group,name:account_group_menu.demo_account_tax_group_4 +msgid "VAT Cash Basis" +msgstr "TVA sur la base de trésorerie" + +#. module: account_group_menu +#: model:ir.model,name:account_group_menu.model_account_group +msgid "account.group" +msgstr "account.group" + +#. module: account_group_menu +#: model:ir.model,name:account_group_menu.model_account_tax_group +msgid "account.tax.group" +msgstr "account.tax.group" diff --git a/account_group_menu/models/__init__.py b/account_group_menu/models/__init__.py new file mode 100644 index 000000000..1e581970e --- /dev/null +++ b/account_group_menu/models/__init__.py @@ -0,0 +1,2 @@ +from . import account_group +from . import account_tax_group diff --git a/account_group_menu/models/account_group.py b/account_group_menu/models/account_group.py new file mode 100644 index 000000000..d6c7ab750 --- /dev/null +++ b/account_group_menu/models/account_group.py @@ -0,0 +1,13 @@ +# 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( + 'account.account', 'group_id', + string='Accounts', + help="Assigned accounts.") diff --git a/account_group_menu/models/account_tax_group.py b/account_group_menu/models/account_tax_group.py new file mode 100644 index 000000000..02c454949 --- /dev/null +++ b/account_group_menu/models/account_tax_group.py @@ -0,0 +1,13 @@ +# 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( + 'account.tax', 'tax_group_id', + string='Taxes', + help="Assigned taxes.") diff --git a/account_group_menu/readme/CONTRIBUTORS.rst b/account_group_menu/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..6f08830c7 --- /dev/null +++ b/account_group_menu/readme/CONTRIBUTORS.rst @@ -0,0 +1,2 @@ +* Fekete Mihai +* Raf Ven diff --git a/account_group_menu/readme/DESCRIPTION.rst b/account_group_menu/readme/DESCRIPTION.rst new file mode 100644 index 000000000..f4ce8d3b0 --- /dev/null +++ b/account_group_menu/readme/DESCRIPTION.rst @@ -0,0 +1,2 @@ +This module adds menu entries **Account Groups** and **Account Tax Groups** under *Invoicing > Configuration > Accounting*, +because this menu entry doesn't exists in the official *account* module of Odoo 12. diff --git a/account_group_menu/static/description/icon.png b/account_group_menu/static/description/icon.png new file mode 100644 index 000000000..3a0328b51 Binary files /dev/null and b/account_group_menu/static/description/icon.png differ diff --git a/account_group_menu/static/description/index.html b/account_group_menu/static/description/index.html new file mode 100644 index 000000000..8c8bd743e --- /dev/null +++ b/account_group_menu/static/description/index.html @@ -0,0 +1,421 @@ + + + + + + +Account Group Menu + + + +
+

Account Group Menu

+ + +

Beta License: AGPL-3 OCA/account-financial-tools Translate me on Weblate Try me on Runbot

+

This module adds menu entries Account Groups and Account Tax Groups under Invoicing > Configuration > Accounting, +because this menu entry doesn’t exists in the official account module of Odoo 12.

+

Table of contents

+ +
+

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.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • Forest and Biomass Romania
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

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.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/account_group_menu/views/account_group.xml b/account_group_menu/views/account_group.xml new file mode 100644 index 000000000..8cc54049e --- /dev/null +++ b/account_group_menu/views/account_group.xml @@ -0,0 +1,26 @@ + + + + + account.group.form + account.group + + + + + + + + + + + + + + diff --git a/account_group_menu/views/account_tax_group.xml b/account_group_menu/views/account_tax_group.xml new file mode 100644 index 000000000..22c891efa --- /dev/null +++ b/account_group_menu/views/account_tax_group.xml @@ -0,0 +1,66 @@ + + + + + account.tax.group.form + account.tax.group + +
+ + + + + + + + + + + + + + +
+
+
+ + + account.tax.group.search + account.tax.group + + + + + + + + + account.tax.group.tree + account.tax.group + + + + + + + + + + Account Tax Groups + account.tax.group + form + tree,form + + + + + +