Community mailing list archives

community@mail.odoo.com

RE: Additional Button In Calendar View

by
yasin
- 02/26/2016 05:12:51

Hi Hans,

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.

Thanks,
Yaseen Shareef

On 26-Feb-2016 15:38, "Hans Yonathan" <hans.yonathan@falinwa.com> wrote:

Hi Yaseen,

 

You need to make development with javascript to have that kind of behavior.

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.

 

Thank You.

 

Best Regards,

Hans Yonathan

CTO

FALINWA Limited

Expert in Finance, Information System & Business Intelligence

Odoo Silver Partner

Website: www.falinwa.com

Tel. 13670137019 (China - Shenzhen)

 

From: Yaseen Shareef [mailto:mayashkhan@gmail.com]
Sent: Friday, February 26, 2016 5:53 PM
To: Community <community@mail.odoo.com>
Subject: Additional Button In Calendar View

 

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

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe