Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions website_event_oss_calendar/README.md
Original file line number Diff line number Diff line change
@@ -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.
Empty file.
18 changes: 18 additions & 0 deletions website_event_oss_calendar/__manifest__.py
Original file line number Diff line number Diff line change
@@ -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,
}
301 changes: 301 additions & 0 deletions website_event_oss_calendar/static/img/thunderbird.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions website_event_oss_calendar/static/src/scss/website.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.o_wevent_event {
.o_wevent_add_to_oss {
--btn-padding-x: 0.7rem;
}
}
13 changes: 13 additions & 0 deletions website_event_oss_calendar/templates/website_event_templates.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<template id="event_description_dates" inherit_id="website_event.event_description_dates">
<xpath expr="//a[hasclass('o_wevent_add_to_ical')]" position="before">
<a t-att-href="iCal_url" class="btn btn-light" title="Download ICS">
<i class="fa fa-calendar"></i>
</a>
<a t-att-href="iCal_url" class="btn btn-light o_wevent_add_to_oss" title="Add to Thunderbird">
<img src="/website_event_oss_calendar/static/img/thunderbird.svg" alt="Thunderbird" />
</a>
</xpath>
</template>
</odoo>
Loading