Calendar CalDAV Sync

This module synchronizes events between an external CalDAV server (e.g. a cPanel-hosted calendar, or any standard CalDAV provider) and Odoo’s calendar.event model, in both directions:
- CalDAV → Odoo: a scheduled action (or the Sync Now button) pulls events from the server into Odoo.
- Odoo → CalDAV: creating, updating or deleting an event owned by a user who has a matching CalDAV account pushes the change to the server immediately.
Supported features:
- Recurring events (RRULE): an Odoo recurring event is pushed as a single CalDAV series (master event + RRULE); occurrences the server sends back are expanded and imported as individual events.
- Reminders (VALARM): Odoo alarms are synced to/from VALARM components (notification → DISPLAY, email → EMAIL).
- Attendees: ATTENDEE/ORGANIZER lines are synced to/from calendar.event.partner_ids, matching or creating contacts by email.
- Conflict detection (ETag): before overwriting an event on the server, the module checks its ETag; if the server copy changed since the last sync, the local push is skipped instead of overwriting it (the next pull brings the server’s version into Odoo).
- Change detection (CTag): the calendar’s collection tag is checked before every sync; if nothing changed since the last run, the pull is skipped entirely.
Known limitations of this version:
- Deleting a single occurrence of a recurring series in Odoo (while the rest of the series is kept) is not pushed to the server; only deleting the whole series is synced. Content-only edits (no time-shift) on a single occurrence are pushed correctly; occurrences that are both edited and moved may create a duplicate on the server rather than a clean override, since Odoo does not keep the occurrence’s original scheduled time once it has been moved.
Table of contents
Configuration
- Install the module.
- Go to Settings > Technical > CalDAV Accounts (activate developer mode if the menu is not visible).
- Create a CalDAV account: server URL, username, password, owner user.
- Click Test Connection to discover the calendar and confirm the credentials work.
- Click Sync Now, or wait for the scheduled action (disabled by default, enable it under Settings > Technical > Scheduled Actions).
Changelog
18.0.3.0.1
- Fixed a connection hang: the CalDAV client had no request timeout (requests defaults to timeout=None, i.e. wait forever), so a server that silently drops packets instead of rejecting the connection could block the sync cron or the Test Connection button for a very long time instead of failing fast with a clear error. Added a 30s timeout.
18.0.3.0.0
- Recurring events: push Odoo recurring series as CalDAV RRULE events; expand and import recurring occurrences from the server.
- Reminders: sync calendar.alarm to/from VALARM components.
- Attendees: sync partner_ids/organizer to/from ATTENDEE/ORGANIZER.
- Conflict detection: check the event ETag before overwriting it on the server; skip the push (server wins) if it changed since the last sync.
- Change detection: check the calendar CTag before every sync and skip the pull entirely if nothing changed.
18.0.2.0.0
- Two-way sync: creating, updating or deleting a calendar.event for a user with a matching CalDAV account now pushes the change to the CalDAV server (create/write/unlink hooks), in addition to the existing CalDAV -> Odoo pull.
18.0.1.0.0
- Initial version: CalDAV account configuration, connection test, manual and scheduled one-way sync (CalDAV -> calendar.event).
Bug Tracker
Bugs are tracked on Terrabit Issues. In case of trouble, please check there if your issue has already been reported.
Do not contact contributors directly about support or help with technical issues.
Credits
Authors
- Terrabit
- Dorin Hongu
Maintainers
This module is part of the terrabit-solutions/bitshop project on GitHub.
You are welcome to contribute.
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Calendar (calendar)
• Discuss (mail) |
| Lines of code | 574 |
| Technical Name |
deltatech_calendar_caldav |
| License | OPL-1 |
| Website | https://www.terrabit.ro |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module