[FIX] caldav: return None value is created problem in rpc respone. so return False value

bzr revid: hmo@tinyerp.com-20100211085745-24sjqdmhw47g3334
This commit is contained in:
Harry (Open ERP)
2010-02-11 14:27:45 +05:30
parent 48a33faa5e
commit d2a634c9ad
+2 -2
View File
@@ -755,8 +755,8 @@ rule or repeating pattern for anexception to a recurrence set"),
def onchange_user_id(self, cr, uid, ids, user_id, *args, **argv):
if not user_id:
return {'value': {'vtimezone': None}}
value = {'vtimezone': None}
return {'value': {'vtimezone': False}}
value = {'vtimezone': False}
cr.execute('select context_tz from res_users where id=%s' % (user_id))
timezone = cr.fetchone()[0]
if timezone: