Skip to content

Commit

Permalink
Merge PR #407 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by legalsylvain
  • Loading branch information
github-grap-bot committed Dec 17, 2024
2 parents 7878d13 + 6cf861f commit 61dbfdc
Show file tree
Hide file tree
Showing 10 changed files with 78 additions and 0 deletions.
Empty file added fermente_hr/README.rst
Empty file.
Empty file added fermente_hr/__init__.py
Empty file.
17 changes: 17 additions & 0 deletions fermente_hr/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright (C) 2024 - Today: GRAP (http://www.grap.coop)
# @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

{
"name": "Fermente - Human Ressources",
"version": "16.0.1.0.0",
"category": "Web",
"author": "GRAP",
"website": "https://github.com/grap/grap-odoo-custom",
"license": "AGPL-3",
"depends": ["hr_expense"],
"data": [
"security/res_groups.xml",
"views/menu.xml",
],
}
15 changes: 15 additions & 0 deletions fermente_hr/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-06-21 10:04+0000\n"
"PO-Revision-Date: 2024-06-21 10:04+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"
1 change: 1 addition & 0 deletions fermente_hr/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* Sylvain LE GAL (https://www.twitter.com/legalsylvain)
7 changes: 7 additions & 0 deletions fermente_hr/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Customize Odoo / odoo / ``hr`` module.


**Temporary**

* Create a group to hide HR menus.

14 changes: 14 additions & 0 deletions fermente_hr/security/res_groups.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2024 - Today: GRAP (http://www.grap.coop)
@author: Sylvain LE GAL (https://twitter.com/legalsylvain)
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
-->
<odoo>

<record id="group_hr" model="res.groups">
<field name="name">HR Features (Do not Use)</field>
<field name="category_id" ref="base.module_category_usability"/>
</record>

</odoo>
17 changes: 17 additions & 0 deletions fermente_hr/views/menu.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2024 - Today: GRAP (http://www.grap.coop)
@author: Sylvain LE GAL (https://twitter.com/legalsylvain)
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
-->
<odoo>

<record id="hr.menu_hr_root" model="ir.ui.menu">
<field name="groups_id" eval="[Command.set([ref('fermente_hr.group_hr')])]"/>
</record>

<record id="hr_expense.menu_hr_expense_root" model="ir.ui.menu">
<field name="groups_id" eval="[Command.set([ref('fermente_hr.group_hr')])]"/>
</record>

</odoo>
1 change: 1 addition & 0 deletions setup/fermente_hr/odoo/addons/fermente_hr
6 changes: 6 additions & 0 deletions setup/fermente_hr/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)

0 comments on commit 61dbfdc

Please sign in to comment.