Hi guys, I cannot configure Calendar to show duration of the event in Calendar view
I use Odoo 18.
p.s. I want to inset examples, but Odoo edit form doesn't allow me to do so...
This is what I have: https://shottr.cc/s/1fd6/SCR-20250717-f5x
class MyEvent(models.Model):
_name = 'mymodule.my_event'
_description = 'My Event'
name = fields.Char("Title", required=True)
date_start = fields.Datetime("Start", required=True)
date_stop = fields.Datetime("End", required=True)
priority = fields.Selection([
('low', 'Low'),
('normal', 'Normal'),
('high', 'High')
], string="Priority")
This is my XML for calendar view:
<odoo>
<record id="view_mymodule_my_event_calendar" model="ir.ui.view">
<field name="name">view_mymodule_my_event_calendar</field>
<field name="model">mymodule.my_event</field>
<field name="arch" type="xml">
<calendar
string="My Calendar"
date_start="date_start"
date_stop="date_stop"
color="priority"
mode="week"
event_open_popup="true">
<field name="name"/>
<field name="priority"/>
</calendar>
</field>
</record>
</odoo>
Please Help!