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.
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">
I would think the event_data_transform function would be the right place to add a button.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 10/10/16, 3:12 AM|
|Seen: 58 times|
|Last updated: 10/10/16, 5:55 PM|