This module add an abstract model that provide an action to link any model to calendar events.
auto_awesome What this module does
AI-generated from the code · Odoo 16.0Provides a reusable building block that lets other Odoo modules show and count the calendar events linked to their records, with a button that opens those events in a calendar view.
This module does not add a new screen by itself. It adds a technical, reusable component (an abstract model called calendar.event.link.mixin) that other modules can attach to their own records so those records can be linked to calendar events.
When a model uses this component, each record gets:
- A counter field,
event_count, that automatically shows how many calendar events are linked to that record. It is calculated by looking at calendar events whose linked document matches the record's model and ID. - A button action,
action_show_events, that opens a window listing the calendar events linked to that specific record. The window is shown in calendar, list and form views, and it is pre-filled so that any new event created from there is automatically linked back to the record.
Because it depends on the standard Calendar app, it works with the existing calendar.event model and its link fields (res_model and res_id). No menus, reports, emails or scheduled jobs are added by this module. Its value is only visible once another module uses this component; on its own it changes nothing for end users.
Depends on
Required by other modules
Models and fields (1)
- calendar.event.link.mixin · new modelevent_count
Text generated by AI (DeepSeek) from reading the Odoo 16.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub
Availability by version
Reviewed: 2026-11-03Confirmation status: 2 confirmed, 7 with no information of 9 versions.
Sources · Odoo 16.0
Confirmed on 2026-11-03 in branch 16.0 of OCA/calendar.
terminal Installation and usage
OCA documentation · Odoo 16.0Usage
Source · Odoo 16.0- Inherit the
calendar.event.link.mixinto the model you want to extend
class YourModel(models.Model):
_name = 'your.model'
_inherit = ['your.model', 'calendar.event.link.mixin']- Inherit the form view of your model and add this button to the
button_boxdiv
<button class="oe_stat_button" type="object" name="action_show_events" icon="fa-calendar">
<div class="o_stat_info">
<field name="event_count" class="o_stat_value"/>
<span class="o_stat_text" attrs="{'invisible': [('event_count', '<', 2)]}">Meetings</span>
<span class="o_stat_text" attrs="{'invisible': [('event_count', '>', 1)]}">Meeting</span>
</div>
</button>No verified information in OCA: Installation, Configuration.
Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.