Community mailing list archives
RE: Additional Button In Calendar Viewby
Thanks for your reply. But I have figured out a simpler way, you can just inherit the oe_calendar_buttons template and add a new one as desired. This doesnt involve any js development as well.
And need to modified the fields_view_get method on the object that you desired to modified, to activated the toolbar in calendar view.
It’s a hard job but its possible.
Expert in Finance, Information System & Business Intelligence
Odoo Silver Partner
Tel. 13670137019 (China - Shenzhen)
Is it possible to add a simple object or action button in the calendar view in Odoo? Have tried adding using the normal method in odoo, but that doesnt work. Also tried something that goes by as follows:
<t t-jquery=".oe_pager_value" t-operation="prepend">
<a t-if="(widget.ViewManager && widget.ViewManager.active_view) === 'calendar"
The above snippet works for the list view in adding an additional link but when I change the active view condition to calendar, it doesn't seem to work. Is there any solution to this?