I am using Odoo 17, how can I change the meetings/appointments colours on the calendar? They are set by the appointment type but I can’t see anywhere in the appointment or calendar settings to change these.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- ลูกค้าสัมพันธ์
- e-Commerce
- ระบบบัญชี
- สินค้าคงคลัง
- PoS
- Project
- MRP
คำถามนี้ถูกตั้งค่าสถานะ
- Odoo 17 uses a built-in color field (0–11) for calendar views.
- Colors are grouped automatically, but you can set them manually in Python for specific appointment types.
- No setting exists in the UI to assign specific colors per type—you’ll need to handle it in code.
@api.model
def create(self, vals):
if 'appointment_type_id' in vals:
if vals['appointment_type_id'] == YOUR_TYPE_ID:
vals['color'] = 2 # Blue
elif vals['appointment_type_id'] == ANOTHER_TYPE_ID:
vals['color'] = 4 # Green
return super().create(vals)
Color codes go from 0 to 11, each representing a different color preset in Odoo.
How It Works:
The calendar view uses the color attribute to apply different background colors.
Odoo assigns colors automatically based on the value of the group field (e.g., appointment_type_id), but you can control this with a small customization.
I Hope It is Useful.
Hi,
Please refer to the module:
1. https://apps.odoo.com/apps/modules/16.0/calendar_event_type_color
Hope it helps.
Same Problem Please help! Following. Were you able to find a solution?
สนุกกับการพูดคุยนี้ใช่ไหม? เข้าร่วมเลย!
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อRelated Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
---|---|---|---|---|
|
1
พ.ย. 23
|
2669 | ||
|
0
พ.ย. 23
|
1716 | ||
|
2
พ.ย. 24
|
1563 | ||
|
2
ธ.ค. 22
|
2703 | ||
|
0
ส.ค. 21
|
2876 |
can you please share exact image.