[FIX] res.users: context_get: read fields as root

bzr revid: chs@openerp.com-20120816154502-v8gp7ilr4762okds
This commit is contained in:
Christophe Simonis 2012-08-16 17:45:02 +02:00
parent c916e5ee0e
commit 942cdee92b
1 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
# Copyright (C) 2010-2011 OpenERP s.a. (<http://openerp.com>).
# Copyright (C) 2010-2012 OpenERP s.a. (<http://openerp.com>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
@ -332,7 +332,7 @@ class res_users(osv.osv):
return super(res_users, self).copy(cr, uid, id, copydef, context)
def context_get(self, cr, uid, context=None):
user = self.browse(cr, uid, uid, context)
user = self.browse(cr, 1, uid, context)
result = {}
for k in self._all_columns.keys():
if k.startswith('context_'):