Community mailing list archives

community@mail.odoo.com

Additional Button In Calendar View

by
yasin
- 02/26/2016 04:47:38
Hi,

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-extend="ViewPager">
    <t t-jquery=".oe_pager_value" t-operation="prepend">
        <a t-if="(widget.ViewManager &amp;&amp; widget.ViewManager.active_view) === 'calendar" 
                    class="oe_bold oe_list_button_import_pdf"
                    id="button_export_pdf"
                    href="#">PDF</a>


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?


Thanks And Regards,
Yaseen Shareef

Odoo Developer/ Consultant
mayashkhan@gmail.com
Skype: yaseen.shareef91