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

I want to sort records in calendar view[Month mode] based  time.

For example, follow the below steps

1. Create a meeting1 at 11AM on Jun 12.

2. Create a meeting2 at 10AM on Jun 12.

In calendar view meeting2 want to be displayed first next meeting1 but instead of i'm getting meeting1 and meetings2 and also i'm getting correct order in week, day mode except month mode.

I'm also tried with _order = 'start_datetime' but it seems not be valid. But works in other views like tree, kanban.

Thanks.

Ảnh đại diện
Huỷ bỏ

Hi,

can you try and add default_order="start_datetime" next to your calendar view ?

Yeah. it also seems invalid and through the error I'm view

On Tue, Oct 30, 2018, 8:24 PM Ibrahim <ibrahim.boudmir@gmail.com> wrote:

Hi,

can you try and add default_order="start_datetime" next to your calendar view ?

Sent by Odoo S.A. using Odoo.

Tác giả Câu trả lời hay nhất

I found a solution, maybe following link will help.
https://github.com/odoo/odoo/issues/26752

Ảnh đại diện
Huỷ bỏ

@Gokulakrisnan Murugesan

I couldn't see a clear solution in that github thread. It is a shame that the mods did not recognise it as a bug because it certainly is IMO.

How did you solve the issue?

The github issue mentioned above now has a working solution (thanks to @romaccount) that just requires one line to be inserted in the calendar_renderer.js file. I can confirm that it works well!

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 10 18
4529
1
thg 1 24
1352
2
thg 5 22
2471
3
thg 6 21
7623
0
thg 5 21
2908