Skip to content

Commit

Permalink
[FIX] portal_holidays: portal users didn´t see Leaves menu
Browse files Browse the repository at this point in the history
X-original-commit: c138e5d
  • Loading branch information
augusto-weiss authored and nicomacr committed Jan 20, 2023
1 parent 8ea5b8d commit 88d61c7
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
43 changes: 43 additions & 0 deletions portal_holidays/__manifest__.py
@@ -0,0 +1,43 @@
##############################################################################
#
# Copyright (C) 2019 ADHOC SA (http://www.adhoc.com.ar)
# All Rights Reserved.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
{
'name': 'Portal Holidays',
'version': '13.0.1.4.0',
'category': 'Base',
'sequence': 14,
'summary': '',
'author': 'ADHOC SA',
'website': 'www.adhoc.com.ar',
'license': 'AGPL-3',
'images': [
],
'depends': [
'portal_backend',
'hr_holidays',
],
'data': [
'security/portal_holidays.xml',
'security/ir.model.access.csv',
'views/portal_templates.xml',
],
'installable': False,
'auto_install': False,
'application': False,
}
17 changes: 17 additions & 0 deletions portal_holidays/security/portal_holidays.xml
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="portal_holidays" model="res.groups">
<field name="name">portal_holidays1</field>
<field name="category_id" ref="base.module_category_human_resources_time_off"/>
<field name="share" eval="True"/>
</record>

<record id="hr_holidays.menu_hr_holidays_root" model="ir.ui.menu">
<field name="groups_id" eval="(4, ref('portal_holidays.portal_holidays'))"/>
</record>

<!-- La siguiente linea va en el módulo de personalizaciones de la empresa que requiera este módulo -->
<!-- <record id="base.group_portal" model="res.groups">
<field name="implied_ids" eval="[(4, ref('portal_holidays.portal_holidays'))]"/>
</record> -->
</odoo>

0 comments on commit 88d61c7

Please sign in to comment.