如何在Odoo中使用Qweb中的用户组来控制视图?
有没有办法根据Qweb中的用户组控制视图 我试图改变chatter中“new message”按钮的可见性。该按钮仅在用户处于调试模式时可见如何在Odoo中使用Qweb中的用户组来控制视图?,odoo,qweb,Odoo,Qweb,有没有办法根据Qweb中的用户组控制视图 我试图改变chatter中“new message”按钮的可见性。该按钮仅在用户处于调试模式时可见 <templates> <t t-extend="mail.Chatter"> <t t-jquery="button[class='btn btn-sm btn-primary o_chatter_button_new_message']" t-operation="replace"> <
<templates>
<t t-extend="mail.Chatter">
<t t-jquery="button[class='btn btn-sm btn-primary o_chatter_button_new_message']" t-operation="replace">
<button type="button" groups="base.group_no_one" class="btn btn-sm btn-primary o_chatter_button_new_message"
title="Send a message">
New message
</button>
</t>
</t>
新消息
属性
groups=“base.group\u no\u one”
不起作用。我还尝试了t-if
条件,但没有成功。您是否将此标签用于in div tag group with group