コンテンツへスキップ
メニュー
この質問にフラグが付けられました
3 返信
2193 ビュー

by default two groups is showed odoo I want to add an third extra group 

アバター
破棄
最善の回答

Hi, 

In your security file in your module you can create another group as below,

<record id="group_your_group_name" model="res.groups">

    <field name="name">Custom Group</field>

    <field name="users" eval="[(4, ref('base.user_root')), (4, ref('base.user_admin'))]"/>

</record>

And then you can add this group to your user role in Roles.

アバター
破棄
著作者 最善の回答

its working thanks 

アバター
破棄

Happy to help!

最善の回答

You can add group content filed using xml 

<xpath expr="//field[@name='content']" position="attributes">
    <attribute name="groups">base.group_no_one</attribute>
</xpath>
アバター
破棄