Skip to main content
Odoo Community Association

Readonly publishing of calendars

Alpha License: AGPL-3 OCA/server-backend Translate me on Weblate Try me on Runboat

This module allows administrators to configure iCalendars based on an arbitrary selection on arbitrary models.

Users can selectively subscribe to them by enabling them in their profile form.

This is useful for exposing Odoo data to calendaring application like Nextcloud.

Table of contents

Configuration

To configure this module, you need to:

  1. Go to Settings/Technical/iCalendars

  2. Create a iCalendar, fill in the model you want to expose and possibly a domain to restrict records. You can use the user variable to restrict things relative to the user using the iCalendar

  3. A iCalendar is only available to the allowed users. Use the Allow automatically to make the iCalendar available to all users

  4. See the examples below for a start

Examples

Simple example, for model calendar.event, you’d fill in record.allday and record.start_date or record.start as DTSTART and record.allday and record.stop_date or record.stop as DTEND.

Advanced example, for model calendar.event, you’d use calendar = record._get_ics_file() in the code.

Advanced example, for model hr.leave, you can use the following code and [("employee_id.user_id", "=", user.id)] in the domain to export the own time offs. This is a bit more complex because of the way Odoo handles the begin and end times of leaves, and you’ll want the extra day as most clients interpret the end date as non-inclusive.:

confirmed = ("validate", "validate1")
if record.request_unit_half or record.request_unit_hours:
   event = {
      "dtstart": event["dtstart"].date(),
      "dtend": event["dtend"].date() + timedelta(days=1),
   }
else:
  event = {
      "dtstart": record.date_from,
      "dtend": record.date_to,
   }

event["summary"] = record.name
event["status"] = "CONFIRMED" if record.state in confirmed else "TENTATIVE"

Advanced example, for model mail.activity, you can use the following code and [("user_id", "=", user.id)] and domain to export all user activities.

todo = {
   "summary": record.display_name,
   "due": record.date_deadline,
   "description": html2plaintext(record.note) if record.note else ""
}

Usage

To use this module, you need to:

  1. Go to your profile form

  2. Click Enable on one of the calendars listed in tab Calendars

  3. Copy the URL to the application you use

Known issues / Roadmap

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

Credits

Authors

  • Hunki Enterprises BV

Contributors

Maintainers

This module is maintained by the OCA.

Odoo Community Association

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

Current maintainer:

hbrunn

This module is part of the OCA/server-backend project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

Metadata

Release files for odoo-addon-base-ical 18.0.1.0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for odoo-addon-base-ical 18.0.1.0.0.5
File Interpreter ABI Platform Actions
odoo_addon_base_ical-18.0.1.0.0.5-py3-none-any.whl Python 3 none any Details for odoo_addon_base_ical-18.0.1.0.0.5-py3-none-any.whl

Release files / odoo_addon_base_ical-18.0.1.0.0.5-py3-none-any.whl

Download URL odoo_addon_base_ical-18.0.1.0.0.5-py3-none-any.whl
Size 41.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8fa29522b5ad866fc68e7a416ca7ff1d9f5b5672de2a744cabeabb184285127f
BLAKE2b-256 checksum
How to use checksums
c1e3b505d3796f48bc98196bd9d1ebdb1b35e9919c2a753e4117504802f61e2e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Security for odoo-addon-base-ical 18.0.1.0.0.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page