[18.0][ADD] hr_shift_ical: personal iCalendar feed for employee shifts - #45
Open
cvinh wants to merge 1 commit into
Open
[18.0][ADD] hr_shift_ical: personal iCalendar feed for employee shifts#45cvinh wants to merge 1 commit into
cvinh wants to merge 1 commit into
Conversation
Publish each employee's shift planning as a personal read-only iCalendar feed, so employees can subscribe to it from Google Calendar, Apple Calendar or Outlook and always see their shifts in the calendar client they use every day. The module builds on top of base_ical (OCA/server-backend) and only provides: - A pre-configured base.ical record targeting hr.shift.planning.line, restricted to the shifts assigned to the connected user's employee and bounded to a rolling window of 30 days in the past and 90 days in the future. auto=True auto-enrolls every internal user, so each one can generate a personal URL from their preferences. - A small extension of base.ical._get_eval_domain_context to expose datetime and timedelta so the domain expression can compute the rolling window boundaries. The feed is strictly read-only and per-user: the domain filter combined with base_ical's with_user(user_id) execution guarantees a compromised URL only exposes its owner's shifts. Tokens are standard res.users.apikeys entries, generated via check_identity (password re-entry) and revocable from the user's API Keys interface. The window can be adjusted by editing the domain of the "My shifts" calendar in Technical > iCalendar > Calendars.
cvinh
force-pushed
the
18.0-add_hr_shift_ical
branch
from
July 22, 2026 02:30
276cc13 to
4f2ce7b
Compare
cvinh
marked this pull request as draft
July 22, 2026 05:02
cvinh
marked this pull request as ready for review
July 22, 2026 05:14
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Publish each employee's shift planning as a personal read-only iCalendar feed, so employees can subscribe to it from Google Calendar, Apple Calendar or Outlook and always see their shifts in the calendar client they use every day.
The module builds on top of base_ical (OCA/server-backend) and only provides:
The feed is strictly read-only and per-user: the domain filter combined with base_ical's with_user(user_id) execution guarantees a compromised URL only exposes its owner's shifts. Tokens are standard res.users.apikeys entries, generated via check_identity (password re-entry) and revocable from the user's API Keys interface.
The window can be adjusted by editing the domain of the "My shifts" calendar in Technical > iCalendar > Calendars.