<p><aclass="reference external"href="https://odoo-community.org/page/development-status"><imgalt="Alpha"src="https://img.shields.io/badge/maturity-Alpha-red.png"/></a><aclass="reference external"href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><imgalt="License: AGPL-3"src="https://img.shields.io/badge/licence-AGPL--3-blue.png"/></a><aclass="reference external"href="https://github.com/OCA/server-backend/tree/15.0/base_ical"><imgalt="OCA/server-backend"src="https://img.shields.io/badge/github-OCA%2Fserver--backend-lightgray.png?logo=github"/></a><aclass="reference external"href="https://translation.odoo-community.org/projects/server-backend-15-0/server-backend-15-0-base_ical"><imgalt="Translate me on Weblate"src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png"/></a><aclass="reference external"href="https://runboat.odoo-community.org/builds?repo=OCA/server-backend&target_branch=15.0"><imgalt="Try me on Runboat"src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png"/></a></p>
<p><aclass="reference external image-reference"href="https://odoo-community.org/page/development-status"><imgalt="Alpha"src="https://img.shields.io/badge/maturity-Alpha-red.png"/></a><aclass="reference external image-reference"href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><imgalt="License: AGPL-3"src="https://img.shields.io/badge/licence-AGPL--3-blue.png"/></a><aclass="reference external image-reference"href="https://github.com/OCA/server-backend/tree/15.0/base_ical"><imgalt="OCA/server-backend"src="https://img.shields.io/badge/github-OCA%2Fserver--backend-lightgray.png?logo=github"/></a><aclass="reference external image-reference"href="https://translation.odoo-community.org/projects/server-backend-15-0/server-backend-15-0-base_ical"><imgalt="Translate me on Weblate"src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png"/></a><aclass="reference external image-reference"href="https://runboat.odoo-community.org/builds?repo=OCA/server-backend&target_branch=15.0"><imgalt="Try me on Runboat"src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png"/></a></p>
<p>This module allows administrators to configure iCalendars based on an arbitrary selection on arbitrary models.</p>
<p>Users can selectively subscribe to them by enabling them in their profile form.</p>
<p>This is useful for exposing Odoo data to calendaring application like Nextcloud.</p>
@@ -382,37 +381,63 @@ Only for development or testing purpose, do not use in production.
<li><pclass="first">Go to Settings/Technical/iCalendars</p>
</li>
<li><pclass="first">Create a calendar, fill in the model you want to expose and possibly a domain to restrict records. You can use the <ttclass="docutils literal">user</tt>variable to restrict things relative to the user using the calendar</p>
</li>
<li><pclass="first">A few iCalendar-fields have defaults that should work for any model, you’ll have to fill in expressions manually though for the start and end date of the records.</p>
<p>For example, for model <ttclass="docutils literal">calendar.event</tt>, you’d fill in <ttclass="docutils literal">record.allday and record.start_date or record.start</tt> as <cite>DTSTART</cite> and <ttclass="docutils literal">record.allday and record.stop_date or record.stop</tt> as <cite>DTEND</cite>.</p>
<p>For model <ttclass="docutils literal">hr.leave</tt>, you’d write <ttclass="docutils literal">(record.request_unit_half or record.request_unit_hours) and record.date_from or record.date_from.date()</tt> for <cite>DTSTART</cite> and <ttclass="docutils literal">(record.request_unit_half or record.request_unit_hours) and record.date_to or (record.date_to.date() + timedelta(days=1))</tt> for <cite>DTEND</cite> - this is a bit more complex because of the way Odoo handles the begin and end times of leaves, and you’ll want the extra day as most clients interpret the end date as non-inclusive.</p>
</li>
<li><pclass="first">Existing calendars are available for users in the tab <cite>Calendars</cite> of their profile form, where they can enable them to obtain a link they can paste into whatever client they are going to use</p>
</li>
<olclass="arabic simple">
<li>Go to Settings/Technical/iCalendars</li>
<li>Create a iCalendar, fill in the model you want to expose and possibly a domain to restrict records. You can use the <ttclass="docutils literal">user</tt> variable to restrict things relative to the user using the iCalendar</li>
<li>A iCalendar is only available to the allowed users. Use the <cite>Allow automatically</cite>to make the iCalendar available to all users</li>
<p>Simple example, for model <ttclass="docutils literal">calendar.event</tt>, you’d fill in <ttclass="docutils literal">record.allday and record.start_date or record.start</tt> as <cite>DTSTART</cite> and <ttclass="docutils literal">record.allday and record.stop_date or record.stop</tt> as <cite>DTEND</cite>.</p>
<p>Advanced example, for model <ttclass="docutils literal">calendar.event</tt>, you’d use <ttclass="docutils literal">calendar = record._get_ics_file()</tt> in the code.</p>
<p>Advanced example, for model <ttclass="docutils literal">hr.leave</tt>, you can use the following code and <ttclass="docutils literal"><spanclass="pre">[("employee_id.user_id",</span><spanclass="pre">"=",</span> user.id)]</tt> in the <cite>domain</cite> to export the own time offs. This is a bit more complex because of the way Odoo handles the begin and end times of leaves, and you’ll want the extra day as most clients interpret the end date as non-inclusive.:</p>
<p>Advanced example, for model <ttclass="docutils literal">mail.activity</tt>, you can use the following code and <ttclass="docutils literal"><spanclass="pre">[("user_id",</span><spanclass="pre">"=",</span> user.id)]</tt> and <cite>domain</cite> to export all user activities.</p>
<li>support all of <aclass="reference external"href="https://datatracker.ietf.org/doc/html/rfc5545#section-3.8">https://datatracker.ietf.org/doc/html/rfc5545#section-3.8</a></li>
<li>allow users to define their own calendars</li>
<aclass="reference external image-reference"href="https://odoo-community.org"><imgalt="Odoo Community Association"src="https://odoo-community.org/logo.png"/></a>
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
<p>This module is part of the <aclass="reference external"href="https://github.com/OCA/server-backend/tree/15.0/base_ical">OCA/server-backend</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <aclass="reference external"href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.