[FIX] calendar: start and end date not being computed

In 17.0 the calendar view was revamped and the boolean field `all_day` started
being rendered with the boolean_toggle widget. This widget, however, behaves
differently than the boolean widget without passing explicit props. This caused
the onchange call not to be made after this change. This commit fixes this by
passing the autosave option as False on the field.

task-3669879

closes odoo/odoo#148874

Signed-off-by: Arnaud Joset (arj) <arj@odoo.com>
This commit is contained in:
Leonardo Pavan Rocha
2024-01-29 13:44:32 +00:00
parent d9500890fd
commit bdf568f56d
+1 -1
View File
@@ -139,7 +139,7 @@
<span invisible="allday" style="white-space: pre;"> or </span>
<div class="d-flex gap-2">
<label for="allday" class=""/>
<field name="allday" class="oe_inline" widget="boolean_toggle" force_save="1" readonly="not user_can_edit"/>
<field name="allday" class="oe_inline" widget="boolean_toggle" force_save="1" options="{'autosave': False}" readonly="not user_can_edit"/>
</div>
</div>
<field name="event_tz" invisible="not recurrency" readonly="not user_can_edit"/>