changes
This commit is contained in:
16
fusion_tasks/graphify-out/westin_sync_fix.py
Normal file
16
fusion_tasks/graphify-out/westin_sync_fix.py
Normal file
@@ -0,0 +1,16 @@
|
||||
print('=== BEFORE ===')
|
||||
for uid in (85, 100, 39):
|
||||
u = env['res.users'].browse(uid)
|
||||
print(f" uid={uid} login={u.login} active={u.active} sync_id={u.x_fc_tech_sync_id!r}")
|
||||
|
||||
env['res.users'].browse(85).active = False
|
||||
env['res.users'].browse(100).x_fc_tech_sync_id = 'simranjeet'
|
||||
env['res.users'].browse(39).x_fc_tech_sync_id = 'hk'
|
||||
|
||||
env.cr.commit()
|
||||
|
||||
print('=== AFTER ===')
|
||||
for uid in (85, 100, 39):
|
||||
u = env['res.users'].with_context(active_test=False).browse(uid)
|
||||
print(f" uid={uid} login={u.login} active={u.active} sync_id={u.x_fc_tech_sync_id!r}")
|
||||
print('DONE')
|
||||
Reference in New Issue
Block a user