From 42c1417ad65cae4e984eacceb9a65a6944a7b7a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 9 Oct 2012 15:55:24 +0200 Subject: [PATCH] Use ActiveRecord naming convention --- proteus/config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/proteus/config.py b/proteus/config.py index 6b155915b2..5ff579f477 100644 --- a/proteus/config.py +++ b/proteus/config.py @@ -213,13 +213,13 @@ class TrytondConfig(Config): with Transaction().start(self.database_name, 0) as transaction: Cache.clean(database_name) - user_obj = self.pool.get('res.user') + User = self.pool.get('res.user') transaction.context = self.context - self.user = user_obj.search([ + self.user = User.search([ ('login', '=', user), ], limit=1)[0].id with transaction.set_user(self.user): - self._context = user_obj.get_preferences(context_only=True) + self._context = User.get_preferences(context_only=True) Cache.resets(database_name) __init__.__doc__ = object.__init__.__doc__