[16.0][ADD] calendar_shared_ics#199
Conversation
| </group> | ||
| <group string="Subscription link"> | ||
| <field name="share_webcal_url" readonly="1" widget="copy" /> | ||
| <field name="share_url" readonly="1" widget="copy" /> |
There was a problem hiding this comment.
@ntsirintanis Correct widget should be CopyClipboardChar:

| res = super()._compute_access_url() | ||
| base_url = self.get_base_url() | ||
| for cal in self: | ||
| cal.access_url = f"{base_url}/calendar/shared/{cal.id}/ics" |
There was a problem hiding this comment.
Not really, this is just the url for that given calendar.shared.ics record, but without the access_token. It is just for being displayed
| else: | ||
| users = self.env["res.users"].search(["|"] + user_domain) | ||
| partner_ids = users.mapped("partner_id").ids | ||
| return {"domain": {"partner_id": [("id", "in", partner_ids)]}} |
There was a problem hiding this comment.
@ntsirintanis Two things here:
-
Returning a domain is deprecated in v16 in favor of using a computed function.
E.g in partner_contact_address_default and usage in the view -
The current domain filter somehow doesn't work well when you include portal users:
53d0f01 to
ae43446
Compare
Kiplangatdan
left a comment
There was a problem hiding this comment.
@ntsirintanis Retested, LGTM!
|
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |

This module allows sharing an Odoo calendar as a read-only ICS feed that can be
subscribed to in external calendar clients such as Outlook, Google Calendar,
and Thunderbird.
The calendar is exposed via a public URL protected by an access token and can be
added as a network calendar (ICS /
webcal://). External calendar clients periodicallyrefresh the feed, providing near-real-time visibility of Odoo events without any
write-back capability.