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

Hi there,


i have created a small module with two fields.date: date_start and date_end

If i use them for the calendar view form like .... date_start="date_start" date_stop="date_end"...


the stop date is allways shown one day before "date_end" realy is.


how can i get the calendar view form to end with the right day?


Thanks a lot


Chris

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

As I have been struggeling with the same issue: You need to add an "all_day=" attribute to the calendar view. It should point to a true boolean. 

e.g.:

<calendar string="Equipment" date_start="date_start" date_stop="date_end" color="color" all_day="allday">

and:

allday = fields.Boolean(default="True")




Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 7 25
524
2
thg 6 25
916
1
thg 4 25
3625
3
thg 8 24
2707
0
thg 12 23
1813