Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] portal_holidays: portal users didn´t see Leaves menu
X-original-commit: c138e5d
- Loading branch information
1 parent
8ea5b8d
commit 88d61c7
Showing
2 changed files
with
60 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,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, | ||
} |
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,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> |