Community mailing list archives

Re: groups property on QWEB template not worked

Anubía, soluciones en la nube, S.L., Alejandro Santana
- 06/26/2015 08:16:24
Hello, Johan.

I faced that same doubt in the past.
For that kind of Qweb you cannot apply the groups policy in the same way as in views.

You can read these:

There they explain why it does not work in some Qwebs (but yes in qweb views).

You should use JS, probably.

Alejandro Santana
· · · · · · · · · · · · · · · · · · · · · · · · · · · · ·

ANUBÍA, soluciones en la nube, S.L.

Colón 26, planta 3, oficina 1
36201, Vigo (Pontevedra)


2015-06-26 10:48 GMT+02:00 Hans Yonathan <>:

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)


Post to: