Skip to Content
मेन्यू
This question has been flagged
1 Reply
14256 Views

hi,

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

thanks

Avatar
Discard
Best Answer

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>
Avatar
Discard
Author

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

Related Posts Replies Views Activity
1
नव॰ 24
1560
3
अप्रैल 23
18146
0
मार्च 15
4563
1
मार्च 15
6589
1
मई 25
2723