İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
611 Görünümler

How can I change the calendar to not show it by sequence but by userid?

Avatar
Vazgeç
Üretici

I changed the "color" field and it only changed the color of the filter widget

En İyi Yanıt

Hi.

To change the calendar view in Odoo to show events by user ID instead of sequence, you would need to customize the calendar view. Here’s a general outline of the process:

  1. Identify the Calendar View: Find the XML file that defines the calendar view for the model you’re interested in. This could be in the module that defines the model, or in a custom module if you’ve already created one.
  2. Modify the View: In the XML file, locate the  tag that defines the calendar view. You’ll see attributes like date_start, date_stop, and color, which define the start and end dates of events and the color used to distinguish different events.
  3. Change the color Attribute: The color attribute determines how events are grouped in the calendar view. By default, this might be set to a field like sequence. Change this to user_id to group events by user ID.

Here’s an example of what the modified view might look like:

https://pastebin.com/H1wp681k

Hope it helps.


Avatar
Vazgeç