Community mailing list archives

community@mail.odoo.com

groups property on QWEB template not worked

by
hans.yonathan
- 06/26/2015 04:44:31

Hello Odoo community,

I tried to create a module to hide the export menu when we click more button on tree view.
I found that the code is on qweb, and for qweb there’s a groups property, so we can hide it base on that property.
But when I add that property, it doesn’t work on this qweb template.
the code is something like this:

<t t-extend="Sidebar">

    <t t-jquery="a.oe_sidebar_action_a" t-operation="replace">

            <a class="oe_sidebar_action_a" t-att-title="item.title or ''" t-att-data-section="section.name" t-att-data-index="item_index" t-att-href="item.url" target="_blank" groups="fal_web_hide_export.group_can_export">

                <t t-raw="item.label" />

            </a>

    </t>

</t>

 

The expected behavior:
It should be work like other qweb.

Is something that I missed on the code?

I look on the inspect element, and the code add it on the elements, so the code is already there but the framework not work.

Is there anyone can achive this?

 

Thank You.

 

Best Regards,

Hans Yonathan

Odoo Support

FALINWA Limited

Expert in Finance, Information System & Business Intelligence

Odoo Silver Partner

Website: www.falinwa.com

Tel. 13670137019 (China - Shenzhen)