在OPENERP 7的“更多”按钮中隐藏导出选项

在OPENERP 7的“更多”按钮中隐藏导出选项,openerp,openerp-7,Openerp,Openerp 7,如何在特定用户组的“更多”按钮中隐藏导出选项,以及如何在openerp 7中隐藏特定用户组的“更多”按钮。隐藏“在更多选项中导出” 在OpenERP-7中 在模块中的static/src/base.XML下创建XML文件,并添加以下代码: <templates> <t t-extend="Sidebar"> <t t-jquery="a.oe_sidebar_action_a" t-operation="replace">

如何在特定用户组的“更多”按钮中隐藏导出选项,以及如何在openerp 7中隐藏特定用户组的“更多”按钮。

隐藏“在更多选项中导出”

在OpenERP-7中

在模块中的static/src/base.XML下创建XML文件,并添加以下代码:

<templates>
        <t t-extend="Sidebar">
            <t t-jquery="a.oe_sidebar_action_a" t-operation="replace">
                <t t-if="widget.session.uid !== 1">
                <a t-if="item.label !== 'Export'" 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">
                     <t t-raw="item.label"/>
                 </a>
                </t>
                <t t-if="widget.session.uid === 1">
                    <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">
                         <t t-raw="item.label"/>
                    </a>
                </t>
            </t>
        </t>
</templates>

现在重新启动服务器,更新数据库并刷新页面。

谢谢您的回答,但它会将导出选项隐藏到整个组中,但我必须为特定组隐藏
'qweb': [ 
    "static/src/base.xml", 
]