如果我猜的没错,你需要在用户表单中添加安全组。
如果是,那么答案就在这里。
创建名为'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)]}"
根据你的需要改变。