[MERGE] forward port of branch 8.0 up to 491372e
[odoo/odoo.git] / openerp / addons / base / res / res_users.py
index e363397..6ec559f 100644 (file)
@@ -377,7 +377,7 @@ class res_users(osv.osv):
     def context_get(self, cr, uid, context=None):
         user = self.browse(cr, SUPERUSER_ID, uid, context)
         result = {}
-        for k in self._all_columns.keys():
+        for k in self._fields:
             if k.startswith('context_'):
                 context_key = k[8:]
             elif k in ['lang', 'tz']: