Community mailing list archives

groups property on QWEB template not worked

- 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="" 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" />





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


Expert in Finance, Information System & Business Intelligence

Odoo Silver Partner


Tel. 13670137019 (China - Shenzhen)