Skip to content

Conversation

@ntsirintanis
Copy link
Collaborator

No description provided.

@ntsirintanis ntsirintanis force-pushed the 14.0-calendar_shared_ics branch from 92f0d6b to b44094a Compare January 9, 2026 13:18
<p class="text-muted">
If you have access to Odoo, you can open the feed record:
</p>
<a t-att-href="backend_url" class="btn btn-outline-secondary">

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would be kinda cool to have the others as a link also

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the original idea was to click on the weburl and then thunderbird would automatically init and import the calendar. Though it does not always work like that, that's why I kept it as a copyable link. I can switch around that too of course

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, so if this is clickable, then the events that are contained in the ics are imported. No new calendar subscription is automatically created. So user should create it manually with that link

@ntsirintanis
Copy link
Collaborator Author

(@thomaspaulb note that you are checking the 14.0 version, which is basically the same as the 16.0 version with a small change in the controller. So better let's finish 16.0, and 14.0 will be auto-finished then)

domain.append(("partner_ids", "in", [self.partner_id.id]))
if self.domain:
extra = safe_eval(self.domain.strip(), {"uid": self.env.uid})
domain += list(extra)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we still add the "items >= now - 7 days" domain? So items in the past are excluded from sync. To up the sync speed.


def _combine_ics_files(self, events, files_by_event_id):
"""Combine individual VCALENDAR payloads into one VCALENDAR bytes."""
combined = vobject.iCalendar()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a way to encode the name of the calendar?

Now Thunderbird defaults to the endpoint name I think, for me it's ics on:

https://odoo-nightly.bmair.com/calendar/shared/1/ics

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did something about it, that did not work. Nevertheless, I do not think that we should configure this too. User can edit the name themselves

@ntsirintanis ntsirintanis force-pushed the 14.0-calendar_shared_ics branch from f523df4 to 1a06402 Compare January 14, 2026 07:57
@ntsirintanis ntsirintanis force-pushed the 14.0-calendar_shared_ics branch from 1a06402 to 19b2d04 Compare January 14, 2026 08:03
@ntsirintanis ntsirintanis force-pushed the 14.0-calendar_shared_ics branch from af595c4 to 8eb8dca Compare January 14, 2026 09:33
@ntsirintanis ntsirintanis force-pushed the 14.0-calendar_shared_ics branch from 8eb8dca to 57cf0b0 Compare January 14, 2026 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants