From 5eaed9dbd47e4c0ad551d9c45032dd62a26cd88b Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Fri, 15 Jun 2012 15:41:22 +0200 Subject: [PATCH] [IMP] res.users: missing _description The unfortunate consequence was that models that inherited res.users *and* another parent (such as mail.thread) were assigned the _description of the other parent, because the copy of self._name to self._description only happens when the model instance is created, which happens much later than constructing the type hierarchy. bzr revid: odo@openerp.com-20120615134122-7q5tllzok3lcu50q --- openerp/addons/base/res/res_users.py | 1 + 1 file changed, 1 insertion(+) diff --git a/openerp/addons/base/res/res_users.py b/openerp/addons/base/res/res_users.py index f4a46e3eca9..8f424e534b0 100644 --- a/openerp/addons/base/res/res_users.py +++ b/openerp/addons/base/res/res_users.py @@ -112,6 +112,7 @@ class users(osv.osv): __admin_ids = {} _uid_cache = {} _name = "res.users" + _description = 'Users' _order = 'name' WELCOME_MAIL_SUBJECT = u"Welcome to OpenERP"