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

Hi,

In the calendar view you can see records over a calendar. By default, the name of the record is shown.

I want to implement a customization to add some more information besides the name of the record. For example, the name of the record and the the creation date. 

To do so, should I override the compute method of the display_name field? Or is it better to override the name_get() function in the model?

Is there a better way to do it?

Thanks,

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

Hi,

For your needs, you can use it to override the name_get() function in the model. if do you need more customization about the calendar view, then  you can refer to the blog

https://cybrosys.com/blog/how-to-create-a-calendar-view-in-menus-of-the-odoo-15

Hope it helps

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 2 18
2506
1
thg 1 24
1365
2
thg 9 22
1999
0
thg 4 17
3251
0
thg 2 17
2960