Odoo中文社区可以通过以下三个域名访问:shine-it.net , odoocn.org,odoo.net.cn

原论坛用户的基本信息和发帖这里都予以保留,请注意:原论坛用户无需重新注册新用户,但是您的密码需要重置

开发人员可以登录gitter讨论组: http://gitter.im/odoo-china/Talk, 需要github账号

如果您登录系统碰到问题,请在微信公众号留言:

动作绑定如何设置做安全设定?



  • Hi 大家好,开发中遇到个麻烦的事情,对动作绑定如何做安全设置?
    我通过动作绑定在Tree视图的More中增加了两个菜单,希望不同组的用户使用不同的菜单,但是在没有找到设置组的地方。各位大侠有没有好的解决办法?谢谢先。

    <br />		&lt;!-- 导出对账 --&gt;<br />		&lt;record id=&quot;action_tms_export_fee_to_account&quot; model=&quot;ir.actions.server&quot;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;field name=&quot;name&quot;&gt;Export To Account&lt;/field&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;field name=&quot;type&quot;&gt;ir.actions.server&lt;/field&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;field name=&quot;model_id&quot; ref=&quot;model_tms_feebase&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;field name=&quot;state&quot;&gt;code&lt;/field&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;field name=&quot;code&quot;&gt;self.export_to_account(cr, uid,context.get(&#039;active_ids&#039;), context=context)&lt;/field&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;/record&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;record id=&quot;val_action_tms_export_fee_to_account&quot; model=&quot;ir.values&quot;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;field name=&quot;name&quot;&gt;Export to Account&lt;/field&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;field name=&quot;action_id&quot; ref=&quot;action_tms_export_fee_to_account&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;field name=&quot;value&quot; eval=&quot;&#039;ir.actions.server,&#039; + str(ref(&#039;action_tms_export_fee_to_account&#039;))&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;field name=&quot;key&quot;&gt;action&lt;/field&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;field name=&quot;model_id&quot; ref=&quot;model_tms_feebase&quot;/&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;field name=&quot;model&quot;&gt;tms.feebase&lt;/field&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;field name=&quot;key2&quot;&gt;client_action_multi&lt;/field&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;!--&lt;field name=&quot;groups&quot;&gt;tms.group_tms_fee_finance&lt;/field&gt;--&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;/record&gt;<br />