How to modify odoo9 calendar view. I have to add more fields and hide some fields and change event color conditionally. I also need to add a click-able button on each event.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- إدارة علاقات العملاء
- e-Commerce
- المحاسبة
- المخزون
- PoS
- Project
- MRP
لقد تم الإبلاغ عن هذا السؤال
To add more fields to the calendar display use the display attribute. To change the color use a field in the color attribute. To change color conditionally then add a compute to the color field in the model.
<calendar string="Itineraries" date_start="start" date_stop="stop" date_delay="duration" all_day="allday" display="[name] - [extra_field_1] - [extra_field_2]" color="colour_partner_id" mode="month">
<field name="name"/>
<field name="extra_field_1"/>
<field name="extra_field_2"/>
<field name="color_partner_id"/>
</calendar>
To add a clickable button to the event you will need to extend the web_calendar module's javascript in web_calendar.js.
I would think the event_data_transform function would be the right place to add a button.
هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيلالمنشورات ذات الصلة | الردود | أدوات العرض | النشاط | |
---|---|---|---|---|
|
1
فبراير 25
|
709 | ||
|
3
مايو 19
|
4387 | ||
|
0
فبراير 19
|
3749 | ||
|
2
سبتمبر 17
|
4318 | ||
|
0
يونيو 17
|
2951 |