-
-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] hr_holidays_public: Allow HR Managers to manage public holidays
- Loading branch information
1 parent
0b3df3b
commit 9e4c7f4
Showing
2 changed files
with
46 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
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,45 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<!-- Copyright 2024 Camptocamp | ||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). --> | ||
<odoo> | ||
<!-- add access for holidays manager --> | ||
<record model="ir.model.access" id="access_calendar_public_holiday_manager"> | ||
<field name="name">access_hr_holidays_public_manager</field> | ||
<field | ||
name="model_id" | ||
ref="calendar_public_holiday.model_calendar_public_holiday" | ||
/> | ||
<field name="group_id" ref="hr_holidays.group_hr_holidays_manager" /> | ||
<field name="perm_read">1</field> | ||
<field name="perm_write">1</field> | ||
<field name="perm_create">1</field> | ||
<field name="perm_unlink">1</field> | ||
</record> | ||
<record model="ir.model.access" id="access_calendar_public_holiday_line_manager"> | ||
<field name="name">access_calendar_public_holiday_line</field> | ||
<field | ||
name="model_id" | ||
ref="calendar_public_holiday.model_calendar_public_holiday_line" | ||
/> | ||
<field name="group_id" ref="hr_holidays.group_hr_holidays_manager" /> | ||
<field name="perm_read">1</field> | ||
<field name="perm_write">1</field> | ||
<field name="perm_create">1</field> | ||
<field name="perm_unlink">1</field> | ||
</record> | ||
<record | ||
model="ir.model.access" | ||
id="access_calendar_public_holiday_manager_next_year" | ||
> | ||
<field name="name">access_calendar_public_holiday_next_year</field> | ||
<field | ||
name="model_id" | ||
ref="calendar_public_holiday.model_calendar_public_holiday_next_year" | ||
/> | ||
<field name="group_id" ref="hr_holidays.group_hr_holidays_manager" /> | ||
<field name="perm_read">1</field> | ||
<field name="perm_write">1</field> | ||
<field name="perm_create">1</field> | ||
<field name="perm_unlink">1</field> | ||
</record> | ||
</odoo> |