跳至內容
選單
此問題已被標幟
1 回覆
13947 瀏覽次數

hi,

everything is in the title , how to make an user member of a group ?

thanks

頭像
捨棄
最佳答案

You have to give reference ID of user created in xml file.

You can add user in group like this:

<record id="group_account_invoice" model="res.groups">
    <field name="name">Invoicing &amp; Payments</field>
    <field name="users" eval="[(4, ref('base.user_root'))]"/>
</record>
頭像
捨棄
作者

it's ok , i have sorted it out by now , i was just too lazy to click on group -> edit -> add :(

相關帖文 回覆 瀏覽次數 活動
1
11月 24
1288
3
4月 23
17742
0
3月 15
4303
1
3月 15
6319
1
5月 25
2418