Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/security/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在Odoo中使用Qweb中的用户组来控制视图?_Odoo_Qweb - Fatal编程技术网

如何在Odoo中使用Qweb中的用户组来控制视图?

如何在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"> <

有没有办法根据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">
        <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