Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
7517 Lượt xem

When you go to the Messaging -> Calendar view, select the monthly view, click the calendar and then select "Edit event", the form that opens has the "All day" checkbox checked by default. Is it possible to override this so that the checkbox is not checked?

Apparently the default value is somehow controlled by the FullCalendar JS library, since neither using the _defaults dictionary or overriding the action's context with { 'default_allday': False } seems to work.

Thanks!


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

I had to use a hack:

    @api.onchange('partner_id')
def onchange_partner(self):
self.allday = False

This was in V14.0, but the same problems remain so far.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi Timo and others,

I've been looking for ways in order to uncheck the "All day" checkbox, but are so far unsuccesful. 

I'm hopeing someone has found a way, and is willing to respond with a solution/workaround? 

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 6 25
749
0
thg 4 19
3290
1
thg 2 16
6792
1
thg 2 16
8336
2
thg 3 15
3126