[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
This commit is contained in:
Olivier Dony 2012-06-15 15:41:22 +02:00
parent bed2f2f0e6
commit 5eaed9dbd4
1 changed files with 1 additions and 0 deletions

View File

@ -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"