[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:
@@ -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"/>
|
||||
|
||||
Reference in New Issue
Block a user