Skip to Content
Menu
This question has been flagged
1 Reply
2228 Views

I am new in odoo platform and i want to add value in groups_id using python code 

how to add please help me..

Avatar
Discard
Best Answer

try like below code

user.write({'groups_id': [(4, self.ref('module_name.group_name_xml_id'))], })

Avatar
Discard