在odoo 10中,组的名称是什么?

问题描述 投票:-1回答:1

创建组后,在这里查看

https:/i.stack.imgur.comRvxKd.png。

我想以这种形式查看该组的情况

https:/i.stack.imgur.comtdl9j.png。

python odoo-10
1个回答
0
投票

如果我猜的没错,你需要在用户表单中添加安全组。

如果是,那么答案就在这里。

  • 首先,你需要去你的自定义模块。
  • 创建名为'securtiy'的文件夹,并在该文件夹中创建'security.xml'。

    (名字不具体,如果你想改文件名的话可以。)

  • 添加以下代码。

    <record id="group_module_name" model="res.groups"> <field name="name">group_name(any string you want)</field> <field name="category_id" ref="category_name"/> (This line is only for if you want to show group under specific category) <field name="implied_ids" eval="[(4, ref('base.group_user'))]"/> (Automatically checked this group that you specified in 'eval' after checked 'group_module_name' group.) </record>

参考链接。

https:/github.comodooodooblob13.0addonsaccountsecurityaccount_security.xml。

评论的回答。

好的,那么这里是你的用户的弹出视图,如你的参考图所示。https:/github.comodooodooblob13.0odooaddonsbaseviewsres_users_views.xml#L117。

从这个attrs看 团体 将不显示在弹出的视图中。

odoo使用的attrs。attrs="{'invisible': [('id', '>', 0)]}"

根据你的需要改变。

© www.soinside.com 2019 - 2024. All rights reserved.