跳至内容
菜单
此问题已终结
3 回复
2383 查看

Right now, when I look at the Calendar app in Month view, it shows the entries each with one line listing the truncated (to fit the one line) Meeting Subject and the Starting Time.

Is it possible to add more information and have the entry be, maybe, 2 or 3 lines long?

For example, I'd like the full Meeting Subject shown multi-line, as well as the duration of the meeting, rather than the Starting Time.

Week view entries are multi-line to fit the size of the entry based on the duration but still only show the Meeting Subject and no other information.

Thanks!

形象
丢弃
编写者 最佳答案

I found a way to stretch the box itself using CSS but not change the text. However, I am told by a nearby dev that it's possible. If I manage to do it, I'll post code here.

For now, here is the CSS that manually stretches the box. (It's not dynamic and can only used a fixed px height. If someone else can make it work dynamically and wrap the text, that would be AWESOME.)

/* this one is the container on all calendar views */

.fc-view-container * {

    min-height: 60px !important;

    overflow-y: visible !important;

}

There are also these two which do something, but I can't get it figured out:

/* this one is just month view event box */
.fc-day-grid-event * {
min-height: auto !important;
text-wrap: wrap !important;
}


/* this one does something */
.o_event_title {
/*overflow-wrap: break-word;*/
/*text-wrap: wrap;*/
/*border-radius: 5px;*/
/*padding: 2px;*/
/*line-height: 10px;*/

/*height: auto !important;*/
/*min-width: 600px !important;*/
/*min-height: 100px !important;*/
/*overflow-x: visible !important;*/
/*overflow-y: visible !important;*/
/*height: 400px !important;*/
}


AND HERE is how I got the text to change. I found it in the base code and it's even commented to show you what to do... like the Odooers knew someone would want to do it.




形象
丢弃
最佳答案

I would be happy to see a multiline display in calendars too.

btw I can't find a documentation which fields will be shown (my calendar view only displays the model name and id)

形象
丢弃
编写者

See my edited answer above. I pasted in a screenshot of some code (for some reason, pasting in code never works for me.)

最佳答案

Hello Kent,

Unfortunately this is not possible in standard. You will only see a few characters of the meeting's title, the duration of the meeting and the slot as you mentioned. 

However, you can quickly see all information just by clicking on the meeting. 

Hope this help ! 

Diego

形象
丢弃
编写者

Actually.... I got it to work. Here's how.

编写者

See my answer above.

相关帖文 回复 查看 活动
2
6月 25
501
1
5月 25
2175
1
4月 25
3217
0
12月 23
1594
1
4月 23
12717