Skip to content

Commit

Permalink
TA#72156 [MIG][16.0] project_group_create (#471)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: Majda EL MARIOULI <[email protected]>
  • Loading branch information
rivo2302 and majouda authored Dec 24, 2024
1 parent c79d504 commit 67f5360
Show file tree
Hide file tree
Showing 12 changed files with 101 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .docker_files/main/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
"category": "Other",
"summary": "Install all addons required for testing.",
"depends": [
"project",
"project_default_task_stage",
"project_group_create",
"project_milestone_enhanced",
"project_milestone_estimated_hours",
"project_milestone_spent_hours",
Expand Down
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ RUN gitoo install-all --conf_file /gitoo.yml --destination "${THIRD_PARTY_ADDONS
USER odoo

COPY project_default_task_stage /mnt/extra-addons/project_default_task_stage
COPY project_group_create mnt/extra-addons/project_group_create
COPY project_milestone_enhanced /mnt/extra-addons/project_milestone_enhanced
COPY project_milestone_estimated_hours /mnt/extra-addons/project_milestone_estimated_hours
COPY project_milestone_spent_hours /mnt/extra-addons/project_milestone_spent_hours
Expand Down
6 changes: 6 additions & 0 deletions gitoo.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
- url: https://github.com/Numigi/odoo-base-addons
branch: "16.0"
includes:
- base_extended_security
- test_http_request

- url: https://github.com/OCA/project
branch: "16.0"
includes:
Expand Down
24 changes: 24 additions & 0 deletions project_group_create/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Project Group Create
====================

This module adds a new group in project management.

.. image:: static/description/group.png

When you install the module, the group of project manager is not allowed
to create project anymore.

.. image:: static/description/warning.png

They need to be promoted to project manager with create group to be granted back
with the create permissions.



Contributors
------------
* Numigi (tm) and all its contributors (https://bit.ly/numigiens)

More information
----------------
* Meet us at https://bit.ly/numigi-com
2 changes: 2 additions & 0 deletions project_group_create/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# © 2020 - today Numigi (tm) and all its contributors (https://bit.ly/numigiens)
# License LGPL-3.0 or later (http://www.gnu.org/licenses/LGPL).
19 changes: 19 additions & 0 deletions project_group_create/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# © 2020 - Today Numigi (tm) and all its contributors (https://bit.ly/numigiens)
# License LGPL-3.0 or later (http://www.gnu.org/licenses/LGPL).

{
"name": "Project Group Create",
"version": "16.0.1.0.0",
"author": "Numigi",
"maintainer": "Numigi",
"website": "https://bit.ly/numigi-com",
"licence": "LGPL-3",
"category": "Project Management",
"summary": "Add a group that manage creation rights on project",
"depends": ["project", "base_extended_security"],
"data": [
"security/res_groups.xml",
"security/extended_security_rule.xml",
],
"installable": True,
}
26 changes: 26 additions & 0 deletions project_group_create/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * project_group_create
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-12-04 10:47+0000\n"
"PO-Revision-Date: 2024-12-04 10:47+0000\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: project_group_create
#: model:res.groups,comment:project_group_create.group_project_manager_create
msgid "Grants create permissions to projects."
msgstr "Accorde les droits de créations de projets"

#. module: project_group_create
#: model:res.groups,name:project_group_create.group_project_manager_create
msgid "Manager with Create"
msgstr "Gestionnaire - Création de projet"
9 changes: 9 additions & 0 deletions project_group_create/security/extended_security_rule.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<record id="project_group_create" model="extended.security.rule">
<field name="group_ids" eval="[(4, ref('group_project_manager_create'))]"/>
<field name="model_id" ref="project.model_project_project"/>
<field name="perm_create" eval="1"/>
</record>

</odoo>
12 changes: 12 additions & 0 deletions project_group_create/security/res_groups.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>

<record id="group_project_manager_create" model="res.groups">
<field name="name">Manager with Create</field>
<field name="category_id" ref="base.module_category_services_project"/>
<field name="implied_ids" eval="[(4, ref('project.group_project_manager'))]"/>
<field name="users" eval="[(4, ref('base.user_admin')), (4, ref('base.user_root'))]"/>
<field name="comment">Grants create permissions to projects.</field>
</record>

</odoo>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added project_group_create/static/description/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 67f5360

Please sign in to comment.