From bc4e23968a8f9bb7ad7d8b490d5c4c6294972e2a Mon Sep 17 00:00:00 2001 From: tarteo Date: Tue, 14 Apr 2026 14:50:49 +0200 Subject: [PATCH] [ADD] website_event_oss_calendar: Open source calendar options on event website page --- website_event_oss_calendar/README.md | 3 + website_event_oss_calendar/__init__.py | 0 website_event_oss_calendar/__manifest__.py | 18 ++ .../static/img/thunderbird.svg | 301 ++++++++++++++++++ .../static/src/scss/website.scss | 5 + .../templates/website_event_templates.xml | 13 + 6 files changed, 340 insertions(+) create mode 100644 website_event_oss_calendar/README.md create mode 100644 website_event_oss_calendar/__init__.py create mode 100644 website_event_oss_calendar/__manifest__.py create mode 100644 website_event_oss_calendar/static/img/thunderbird.svg create mode 100644 website_event_oss_calendar/static/src/scss/website.scss create mode 100644 website_event_oss_calendar/templates/website_event_templates.xml diff --git a/website_event_oss_calendar/README.md b/website_event_oss_calendar/README.md new file mode 100644 index 00000000..4e05f3d3 --- /dev/null +++ b/website_event_oss_calendar/README.md @@ -0,0 +1,3 @@ +By default in Odoo only closed source calendars (Google, Outlook, iCal etc.) are shown in the event website view. This module adds also add an generic ICS calendar option alongside some branded open source options. + +The iCal and Outlook are using the same ICS format, so the generic calendar option is basically a link to the same ICS file as the Outlook one, but with a different name and icon. This allows to have a more neutral calendar option that can be used in any context, without mentioning specific brands. diff --git a/website_event_oss_calendar/__init__.py b/website_event_oss_calendar/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/website_event_oss_calendar/__manifest__.py b/website_event_oss_calendar/__manifest__.py new file mode 100644 index 00000000..eb657e26 --- /dev/null +++ b/website_event_oss_calendar/__manifest__.py @@ -0,0 +1,18 @@ +{ + "name": "Events: generic & open source calendar options", + "version": "18.0.1.0.0", + "category": "Events", + "summary": "Add generic and open source calendar options to events (alongside the branded ones)", + "depends": [ + "website_event", + ], + "data": [ + "templates/website_event_templates.xml", + ], + "assets": { + "web.assets_frontend": [ + "website_event_oss_calendar/static/src/scss/website.scss", + ], + }, + "auto_install": True, +} diff --git a/website_event_oss_calendar/static/img/thunderbird.svg b/website_event_oss_calendar/static/img/thunderbird.svg new file mode 100644 index 00000000..bc12a48b --- /dev/null +++ b/website_event_oss_calendar/static/img/thunderbird.svg @@ -0,0 +1,301 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/website_event_oss_calendar/static/src/scss/website.scss b/website_event_oss_calendar/static/src/scss/website.scss new file mode 100644 index 00000000..9de0d5e5 --- /dev/null +++ b/website_event_oss_calendar/static/src/scss/website.scss @@ -0,0 +1,5 @@ +.o_wevent_event { + .o_wevent_add_to_oss { + --btn-padding-x: 0.7rem; + } +} diff --git a/website_event_oss_calendar/templates/website_event_templates.xml b/website_event_oss_calendar/templates/website_event_templates.xml new file mode 100644 index 00000000..81622ca6 --- /dev/null +++ b/website_event_oss_calendar/templates/website_event_templates.xml @@ -0,0 +1,13 @@ + + + +