diff --git a/base_maintenance_group/README.rst b/base_maintenance_group/README.rst new file mode 100644 index 000000000..87b240f9b --- /dev/null +++ b/base_maintenance_group/README.rst @@ -0,0 +1,95 @@ +================== +Maintenance Groups +================== + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! 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%2Fmaintenance-lightgray.png?logo=github + :target: https://github.com/OCA/maintenance/tree/16.0/base_maintenance_group + :alt: OCA/maintenance +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/maintenance-16-0/maintenance-16-0-base_maintenance_group + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png + :target: https://runboat.odoo-community.org/webui/builds.html?repo=OCA/maintenance&target_branch=16.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module provides a security group category 'Maintenance' with two new user +groups: + +- 'User' +- 'Full Access'. + +The user group 'Equipment Manager', already provided by the standard Odoo, +will also be listed in the group category 'Maintenance'. + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +Assign any of the Maintenance groups ('User' or 'Equipment Manager' or +'Full Access') to the users, in order to enable the maintenance menus. + +To do so, you need to: + +#. Go on 'Settings' -> 'Users & Companies' -> 'Users'. +#. Create a new user or select an already existing one. +#. In the tab 'Access Rights', at the 'Application Accesses' paragraph, + set a group in the 'Maintenance' category. + +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 +~~~~~~~ + +* Onestein + +Contributors +~~~~~~~~~~~~ + +* Antonio Esposito +* Andrea Stirpe +* Luisa Miguéns + +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/maintenance `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/base_maintenance_group/__init__.py b/base_maintenance_group/__init__.py new file mode 100644 index 000000000..ef5ae3587 --- /dev/null +++ b/base_maintenance_group/__init__.py @@ -0,0 +1 @@ +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). diff --git a/base_maintenance_group/__manifest__.py b/base_maintenance_group/__manifest__.py new file mode 100644 index 000000000..0d30cacf8 --- /dev/null +++ b/base_maintenance_group/__manifest__.py @@ -0,0 +1,18 @@ +# Copyright 2017-2019 Onestein () +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +{ + "name": "Maintenance Groups", + "summary": "Provides base access groups for the Maintenance App", + "author": "Onestein, Odoo Community Association (OCA)", + "website": "https://github.com/OCA/maintenance", + "category": "Maintenance", + "version": "16.0.1.0.0", + "license": "AGPL-3", + "depends": ["maintenance"], + "data": [ + "data/maintenance_data.xml", + "security/maintenance_security.xml", + "menuitems.xml", + ], +} diff --git a/base_maintenance_group/data/maintenance_data.xml b/base_maintenance_group/data/maintenance_data.xml new file mode 100644 index 000000000..8805b959c --- /dev/null +++ b/base_maintenance_group/data/maintenance_data.xml @@ -0,0 +1,9 @@ + + + + + Maintenance + 103 + + diff --git a/base_maintenance_group/i18n/base_maintenance_group.pot b/base_maintenance_group/i18n/base_maintenance_group.pot new file mode 100644 index 000000000..7ad8b3729 --- /dev/null +++ b/base_maintenance_group/i18n/base_maintenance_group.pot @@ -0,0 +1,29 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_maintenance_group +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 15.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: base_maintenance_group +#: model:res.groups,name:base_maintenance_group.group_maintenance_manager +msgid "Full Access" +msgstr "" + +#. module: base_maintenance_group +#: model:ir.module.category,name:base_maintenance_group.module_maintenance +msgid "Maintenance" +msgstr "" + +#. module: base_maintenance_group +#: model:res.groups,name:base_maintenance_group.group_maintenance_user +msgid "User" +msgstr "" diff --git a/base_maintenance_group/i18n/it.po b/base_maintenance_group/i18n/it.po new file mode 100644 index 000000000..8cc3d8aed --- /dev/null +++ b/base_maintenance_group/i18n/it.po @@ -0,0 +1,32 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_maintenance_group +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2021-07-23 15:49+0000\n" +"Last-Translator: mymage \n" +"Language-Team: none\n" +"Language: it\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" +"X-Generator: Weblate 4.3.2\n" + +#. module: base_maintenance_group +#: model:res.groups,name:base_maintenance_group.group_maintenance_manager +msgid "Full Access" +msgstr "Accesso completo" + +#. module: base_maintenance_group +#: model:ir.module.category,name:base_maintenance_group.module_maintenance +msgid "Maintenance" +msgstr "Manutenzione" + +#. module: base_maintenance_group +#: model:res.groups,name:base_maintenance_group.group_maintenance_user +msgid "User" +msgstr "Utente" diff --git a/base_maintenance_group/i18n/pt_BR.po b/base_maintenance_group/i18n/pt_BR.po new file mode 100644 index 000000000..71fac0d3c --- /dev/null +++ b/base_maintenance_group/i18n/pt_BR.po @@ -0,0 +1,32 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_maintenance_group +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2020-06-23 22:10+0000\n" +"Last-Translator: Fernando Colus \n" +"Language-Team: none\n" +"Language: pt_BR\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" +"X-Generator: Weblate 3.10\n" + +#. module: base_maintenance_group +#: model:res.groups,name:base_maintenance_group.group_maintenance_manager +msgid "Full Access" +msgstr "Acesso Total" + +#. module: base_maintenance_group +#: model:ir.module.category,name:base_maintenance_group.module_maintenance +msgid "Maintenance" +msgstr "Manutenção" + +#. module: base_maintenance_group +#: model:res.groups,name:base_maintenance_group.group_maintenance_user +msgid "User" +msgstr "Usuário" diff --git a/base_maintenance_group/menuitems.xml b/base_maintenance_group/menuitems.xml new file mode 100644 index 000000000..a9add3a11 --- /dev/null +++ b/base_maintenance_group/menuitems.xml @@ -0,0 +1,71 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/base_maintenance_group/readme/CONTRIBUTORS.rst b/base_maintenance_group/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..bacb8072a --- /dev/null +++ b/base_maintenance_group/readme/CONTRIBUTORS.rst @@ -0,0 +1,3 @@ +* Antonio Esposito +* Andrea Stirpe +* Luisa Miguéns diff --git a/base_maintenance_group/readme/DESCRIPTION.rst b/base_maintenance_group/readme/DESCRIPTION.rst new file mode 100644 index 000000000..2890d8393 --- /dev/null +++ b/base_maintenance_group/readme/DESCRIPTION.rst @@ -0,0 +1,8 @@ +This module provides a security group category 'Maintenance' with two new user +groups: + +- 'User' +- 'Full Access'. + +The user group 'Equipment Manager', already provided by the standard Odoo, +will also be listed in the group category 'Maintenance'. diff --git a/base_maintenance_group/readme/USAGE.rst b/base_maintenance_group/readme/USAGE.rst new file mode 100644 index 000000000..8ff2c54a4 --- /dev/null +++ b/base_maintenance_group/readme/USAGE.rst @@ -0,0 +1,9 @@ +Assign any of the Maintenance groups ('User' or 'Equipment Manager' or +'Full Access') to the users, in order to enable the maintenance menus. + +To do so, you need to: + +#. Go on 'Settings' -> 'Users & Companies' -> 'Users'. +#. Create a new user or select an already existing one. +#. In the tab 'Access Rights', at the 'Application Accesses' paragraph, + set a group in the 'Maintenance' category. diff --git a/base_maintenance_group/security/maintenance_security.xml b/base_maintenance_group/security/maintenance_security.xml new file mode 100644 index 000000000..95bc2a8ea --- /dev/null +++ b/base_maintenance_group/security/maintenance_security.xml @@ -0,0 +1,52 @@ + + + + + + User + + + + + + + + Full Access + + + + + + + + Only Subscribe Maintenance Team + + + [('member_ids', 'in', [user.id])] + + + + + + + All Maintenance Team + + + [(1, '=', 1)] + + + + + + + diff --git a/base_maintenance_group/static/description/icon.png b/base_maintenance_group/static/description/icon.png new file mode 100644 index 000000000..3a0328b51 Binary files /dev/null and b/base_maintenance_group/static/description/icon.png differ diff --git a/base_maintenance_group/static/description/index.html b/base_maintenance_group/static/description/index.html new file mode 100644 index 000000000..68c44f4de --- /dev/null +++ b/base_maintenance_group/static/description/index.html @@ -0,0 +1,441 @@ + + + + + + +Maintenance Groups + + + +
+

Maintenance Groups

+ + +

Beta License: AGPL-3 OCA/maintenance Translate me on Weblate Try me on Runboat

+

This module provides a security group category ‘Maintenance’ with two new user +groups:

+
    +
  • ‘User’
  • +
  • ‘Full Access’.
  • +
+

The user group ‘Equipment Manager’, already provided by the standard Odoo, +will also be listed in the group category ‘Maintenance’.

+

Table of contents

+ +
+

Usage

+

Assign any of the Maintenance groups (‘User’ or ‘Equipment Manager’ or +‘Full Access’) to the users, in order to enable the maintenance menus.

+

To do so, you need to:

+
    +
  1. Go on ‘Settings’ -> ‘Users & Companies’ -> ‘Users’.
  2. +
  3. Create a new user or select an already existing one.
  4. +
  5. In the tab ‘Access Rights’, at the ‘Application Accesses’ paragraph, +set a group in the ‘Maintenance’ category.
  6. +
+
+
+

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

+
    +
  • Onestein
  • +
+
+
+

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/maintenance project on GitHub.

+

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

+
+
+
+ + diff --git a/setup/base_maintenance_group/odoo/addons/base_maintenance_group b/setup/base_maintenance_group/odoo/addons/base_maintenance_group new file mode 120000 index 000000000..b6941629f --- /dev/null +++ b/setup/base_maintenance_group/odoo/addons/base_maintenance_group @@ -0,0 +1 @@ +../../../../base_maintenance_group \ No newline at end of file diff --git a/setup/base_maintenance_group/setup.py b/setup/base_maintenance_group/setup.py new file mode 100644 index 000000000..28c57bb64 --- /dev/null +++ b/setup/base_maintenance_group/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)