[IMP] mail_mail: removed unnecessary SUPERUSER_ID.
authorThibault Delavallée <tde@openerp.com>
Fri, 14 Dec 2012 10:47:54 +0000 (11:47 +0100)
committerThibault Delavallée <tde@openerp.com>
Fri, 14 Dec 2012 10:47:54 +0000 (11:47 +0100)
bzr revid: tde@openerp.com-20121214104754-5zsqi9tyhyk7fe6s

addons/mail/mail_mail.py

index cbd0eec..8df1270 100644 (file)
@@ -63,7 +63,7 @@ class mail_mail(osv.Model):
     }
 
     def _get_default_from(self, cr, uid, context=None):
-        this = self.pool.get('res.users').browse(cr, SUPERUSER_ID, uid, context=context)
+        this = self.pool.get('res.users').browse(cr, uid, uid, context=context)
         if this.alias_domain:
             return '%s@%s' % (this.alias_name, this.alias_domain)
         elif this.email: