İlk versiyon: MyMach Fleet Intelligence ve yapılandırmalar
This commit is contained in:
4
assign_group.py
Normal file
4
assign_group.py
Normal file
@@ -0,0 +1,4 @@
|
||||
env.user.write({'groups_id': [(4, env.ref('mymach_fleet_intelligence.group_mymach_fleet_manager').id)]})
|
||||
env['res.users'].browse(2).write({'groups_id': [(4, env.ref('mymach_fleet_intelligence.group_mymach_fleet_manager').id)]})
|
||||
env.cr.commit()
|
||||
print("Group assigned to admin user successfully")
|
||||
Reference in New Issue
Block a user