Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[18.0][MIG] base_maintenance_group: Migration to 18.0 #446

Open
wants to merge 31 commits into
base: 18.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
38fadbd
[11.0][MIG] Split and rename module to base_maintenance_group
astirpe Jul 26, 2019
47e1fd3
[UPD] Update base_maintenance_group.pot
oca-travis Sep 10, 2019
9511afb
[UPD] README.rst
OCA-git-bot Sep 10, 2019
38dde15
[MIG] base_maintenance_group: Migration to 12.0
lmiguens-solvos Sep 18, 2019
45eee02
[UPD] Update base_maintenance_group.pot
oca-travis Sep 25, 2019
0eec818
Added translation using Weblate (Portuguese (Brazil))
fcolus Jun 23, 2020
5f5d66f
Translated using Weblate (Portuguese (Brazil))
fcolus Jun 23, 2020
6f4a7b2
[ADD] Add ir.rule which it will be able to see only maintenance team …
Borruso Sep 28, 2020
3b3f45e
base_maintenance_group 12.0.1.1.0
OCA-git-bot Nov 17, 2020
3145de9
Added translation using Weblate (Italian)
mymage Jul 23, 2021
bd165c9
Translated using Weblate (Italian)
mymage Jul 23, 2021
812a1b5
[IMP] base_maintenance_group: black, isort, prettier
mariadforgeflow Aug 23, 2021
1c58771
[MIG] base_maintenance_group: Migration to 13.0
mariadforgeflow Aug 23, 2021
22ecaff
[UPD] Update base_maintenance_group.pot
oca-travis Sep 14, 2021
5092f12
[MIG] base_maintenance_group: Migration to 14.0
mariadforgeflow Sep 30, 2021
b72ed7b
[UPD] Update base_maintenance_group.pot
oca-travis Oct 20, 2021
8a7ace0
[FIX] base_maintenance_group: bug in security groups
MiquelRForgeFlow Nov 15, 2021
f4d2722
base_maintenance_group 14.0.1.0.1
OCA-git-bot Nov 15, 2021
e239f46
[MIG] base_maintenance_group: Migration to 15.0
mymage Nov 23, 2022
b41e67a
[UPD] Update base_maintenance_group.pot
Dec 29, 2022
67d97a7
[UPD] README.rst
OCA-git-bot Dec 29, 2022
5cfdba6
Update translation files
weblate Dec 29, 2022
03d0064
[MIG] base_maintenance_group: Migration to 16.0
Borruso Jun 30, 2023
c85d48f
[UPD] Update base_maintenance_group.pot
Jul 5, 2023
d10882c
[UPD] README.rst
OCA-git-bot Jul 5, 2023
5d7255f
Added translation using Weblate (Spanish)
Ivorra78 Jul 22, 2023
f036741
Translated using Weblate (Spanish)
Ivorra78 Jul 22, 2023
0114a34
[UPD] README.rst
OCA-git-bot Sep 3, 2023
e317129
Added translation using Weblate (Slovak)
peterdovicovic Jan 8, 2024
884e9c3
[IMP] base_maintenance_group: pre-commit auto fixes
HeliconiaSolutions Jan 24, 2025
5a08128
[MIG] base_maintenance_group: Migration to 18.0
HeliconiaSolutions Jan 24, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
101 changes: 101 additions & 0 deletions base_maintenance_group/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
==================
Maintenance Groups
==================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:7c718a98ca46c4a655437411ed50024b0c76f69f839b6141348a6b6a859f5696
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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/18.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-18-0/maintenance-18-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/builds?repo=OCA/maintenance&target_branch=18.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:

1. Go on 'Settings' -> 'Users & Companies' -> 'Users'.
2. Create a new user or select an already existing one.
3. 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 to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/maintenance/issues/new?body=module:%20base_maintenance_group%0Aversion:%2018.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]>
- `Heliconia Solutions Pvt. Ltd. <https://www.heliconia.io>`__

- Bhavesh Heliconia

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/18.0/base_maintenance_group>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions base_maintenance_group/__init__.py
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).
18 changes: 18 additions & 0 deletions base_maintenance_group/__manifest__.py
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": "18.0.1.0.0",
"license": "AGPL-3",
"depends": ["maintenance"],
"data": [
"data/maintenance_data.xml",
"security/maintenance_security.xml",
"menuitems.xml",
],
}
9 changes: 9 additions & 0 deletions base_maintenance_group/data/maintenance_data.xml
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>
29 changes: 29 additions & 0 deletions base_maintenance_group/i18n/base_maintenance_group.pot
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 16.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 ""
32 changes: 32 additions & 0 deletions base_maintenance_group/i18n/es.po
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 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-07-22 23:09+0000\n"
"Last-Translator: Ivorra78 <[email protected]>\n"
"Language-Team: none\n"
"Language: es\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.17\n"

#. module: base_maintenance_group
#: model:res.groups,name:base_maintenance_group.group_maintenance_manager
msgid "Full Access"
msgstr "Acceso total"

#. module: base_maintenance_group
#: model:ir.module.category,name:base_maintenance_group.module_maintenance
msgid "Maintenance"
msgstr "Mantenimiento"

#. module: base_maintenance_group
#: model:res.groups,name:base_maintenance_group.group_maintenance_user
msgid "User"
msgstr "Usuario"
32 changes: 32 additions & 0 deletions base_maintenance_group/i18n/it.po
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"
32 changes: 32 additions & 0 deletions base_maintenance_group/i18n/pt_BR.po
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"
30 changes: 30 additions & 0 deletions base_maintenance_group/i18n/sk.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * base_maintenance_group
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
"Language: sk\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\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 ""
71 changes: 71 additions & 0 deletions base_maintenance_group/menuitems.xml
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>
3 changes: 3 additions & 0 deletions base_maintenance_group/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
6 changes: 6 additions & 0 deletions base_maintenance_group/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
- Antonio Esposito \<<[email protected]>\>
- Andrea Stirpe \<<[email protected]>\>
- Luisa Miguéns \<<[email protected]>\>
- [Heliconia Solutions Pvt. Ltd.](https://www.heliconia.io)
- Bhavesh Heliconia

8 changes: 8 additions & 0 deletions base_maintenance_group/readme/DESCRIPTION.md
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'.
9 changes: 9 additions & 0 deletions base_maintenance_group/readme/USAGE.md
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:

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