[IMP]Base_setup:write the values on all existing User also by user preferences wiz
bzr revid: aag@tinyerp.co.in-20110527124835-2aeyavyqnoj4vv2y
This commit is contained in:
parent
f476d037da
commit
b8c220d8d4
|
@ -231,7 +231,10 @@ class user_preferences_config(osv.osv_memory):
|
|||
return res
|
||||
|
||||
def execute(self, cr, uid, ids, context=None):
|
||||
user_obj = self.pool.get('res.users')
|
||||
user_ids = user_obj.search(cr, uid, [], context=context)
|
||||
for o in self.browse(cr, uid, ids, context=context):
|
||||
user_obj.write(cr , uid, user_ids ,{'context_tz' : o.context_tz, 'context_lang' : o.context_lang, 'view' : o.view, 'menu_tips' : o.menu_tips}, context=context)
|
||||
ir_values_obj = self.pool.get('ir.values')
|
||||
ir_values_obj.set(cr, uid, 'default', False, 'context_tz', ['res.users'], o.context_tz)
|
||||
ir_values_obj.set(cr, uid, 'default', False, 'context_lang', ['res.users'], o.context_lang)
|
||||
|
|
Loading…
Reference in New Issue