-
-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by etobella
- Loading branch information
Showing
16 changed files
with
807 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 <https://github.com/OCA/maintenance/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 <https://github.com/OCA/maintenance/issues/new?body=module:%20base_maintenance_group%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. | ||
|
||
Do not contact contributors directly about support or help with technical issues. | ||
|
||
Credits | ||
======= | ||
|
||
Authors | ||
~~~~~~~ | ||
|
||
* Onestein | ||
|
||
Contributors | ||
~~~~~~~~~~~~ | ||
|
||
* Antonio Esposito <[email protected]> | ||
* Andrea Stirpe <[email protected]> | ||
* Luisa Miguéns <[email protected]> | ||
|
||
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 <https://github.com/OCA/maintenance/tree/16.0/base_maintenance_group>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Copyright 2017-2019 Onestein (<https://www.onestein.eu>) | ||
# 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", | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<!-- Copyright 2017 Onestein (<https://www.onestein.eu>) | ||
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). --> | ||
<odoo noupdate="1"> | ||
<record id="module_maintenance" model="ir.module.category"> | ||
<field name="name">Maintenance</field> | ||
<field name="sequence">103</field> | ||
</record> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 <[email protected]>\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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 <[email protected]>\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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<!-- Copyright 2017-2019 Onestein (<https://www.onestein.eu>) | ||
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). --> | ||
<odoo> | ||
<record id="maintenance.menu_maintenance_configuration" model="ir.ui.menu"> | ||
<field | ||
eval="[(4,ref('base_maintenance_group.group_maintenance_manager'))]" | ||
name="groups_id" | ||
/> | ||
</record> | ||
<record id="maintenance.menu_maintenance_title" model="ir.ui.menu"> | ||
<field | ||
eval="[(4,ref('base_maintenance_group.group_maintenance_user'))]" | ||
name="groups_id" | ||
/> | ||
</record> | ||
<record id="maintenance.menu_m_dashboard" model="ir.ui.menu"> | ||
<field | ||
eval="[(3,ref('base.group_user')),(4,ref('base_maintenance_group.group_maintenance_user'))]" | ||
name="groups_id" | ||
/> | ||
</record> | ||
<record id="maintenance.menu_m_request" model="ir.ui.menu"> | ||
<field | ||
eval="[(3,ref('base.group_user')),(4,ref('base_maintenance_group.group_maintenance_user'))]" | ||
name="groups_id" | ||
/> | ||
</record> | ||
<record id="maintenance.menu_m_request_form" model="ir.ui.menu"> | ||
<field | ||
eval="[(3,ref('base.group_user')),(4,ref('base_maintenance_group.group_maintenance_user'))]" | ||
name="groups_id" | ||
/> | ||
</record> | ||
<record id="maintenance.menu_m_request_calendar" model="ir.ui.menu"> | ||
<field | ||
eval="[(3,ref('base.group_user')),(4,ref('base_maintenance_group.group_maintenance_user'))]" | ||
name="groups_id" | ||
/> | ||
</record> | ||
<record id="maintenance.menu_equipment_form" model="ir.ui.menu"> | ||
<field | ||
eval="[(3,ref('base.group_user')),(4,ref('base_maintenance_group.group_maintenance_user'))]" | ||
name="groups_id" | ||
/> | ||
</record> | ||
<record id="maintenance.menu_m_reports" model="ir.ui.menu"> | ||
<field | ||
eval="[(3,ref('base.group_user')),(4,ref('base_maintenance_group.group_maintenance_user'))]" | ||
name="groups_id" | ||
/> | ||
</record> | ||
<record id="maintenance.menu_m_reports_oee" model="ir.ui.menu"> | ||
<field | ||
eval="[(3,ref('base.group_user')),(4,ref('base_maintenance_group.group_maintenance_user'))]" | ||
name="groups_id" | ||
/> | ||
</record> | ||
<record id="maintenance.menu_m_reports_losses" model="ir.ui.menu"> | ||
<field | ||
eval="[(3,ref('base.group_user')),(4,ref('base_maintenance_group.group_maintenance_user'))]" | ||
name="groups_id" | ||
/> | ||
</record> | ||
<record id="maintenance.menu_maintenance_teams" model="ir.ui.menu"> | ||
<field | ||
eval="[(4,ref('base_maintenance_group.group_maintenance_user'))]" | ||
name="groups_id" | ||
/> | ||
</record> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
* Antonio Esposito <[email protected]> | ||
* Andrea Stirpe <[email protected]> | ||
* Luisa Miguéns <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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'. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<!-- Copyright 2017-2019 Onestein (<https://www.onestein.eu>) | ||
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). --> | ||
<odoo> | ||
<data noupdate="0"> | ||
<record id="group_maintenance_user" model="res.groups"> | ||
<field name="name">User</field> | ||
<field name="category_id" ref="module_maintenance" /> | ||
</record> | ||
<record id="maintenance.group_equipment_manager" model="res.groups"> | ||
<field name="category_id" ref="module_maintenance" /> | ||
<field name="implied_ids" eval="[(4, ref('group_maintenance_user'))]" /> | ||
</record> | ||
<record id="group_maintenance_manager" model="res.groups"> | ||
<field name="name">Full Access</field> | ||
<field name="category_id" ref="module_maintenance" /> | ||
<field | ||
name="implied_ids" | ||
eval="[(4, ref('maintenance.group_equipment_manager')), (4, ref('group_maintenance_user'))]" | ||
/> | ||
<field | ||
name="users" | ||
eval="[(4, ref('base.user_root')), (4, ref('base.user_admin'))]" | ||
/> | ||
</record> | ||
</data> | ||
<data noupdate="1"> | ||
<record id="only_subscribe_maintenance_team" model="ir.rule"> | ||
<field name="name">Only Subscribe Maintenance Team</field> | ||
<field name="model_id" ref="maintenance.model_maintenance_team" /> | ||
<field name="groups" eval="[(6, 0, [ref('group_maintenance_user')])]" /> | ||
<field name="domain_force">[('member_ids', 'in', [user.id])]</field> | ||
<field name="perm_read" eval="True" /> | ||
<field name="perm_write" eval="True" /> | ||
<field name="perm_unlink" eval="True" /> | ||
<field name="perm_create" eval="True" /> | ||
</record> | ||
<record id="all_maintenance_team" model="ir.rule"> | ||
<field name="name">All Maintenance Team</field> | ||
<field name="model_id" ref="maintenance.model_maintenance_team" /> | ||
<field | ||
name="groups" | ||
eval="[(6, 0, [ref('maintenance.group_equipment_manager')])]" | ||
/> | ||
<field name="domain_force">[(1, '=', 1)]</field> | ||
<field name="perm_read" eval="True" /> | ||
<field name="perm_write" eval="True" /> | ||
<field name="perm_unlink" eval="True" /> | ||
<field name="perm_create" eval="True" /> | ||
</record> | ||
</data> | ||
</odoo> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.