将消息发送到电子邮件地址时,如何显示回复字段?我很困惑,因为有时它会显示,有时不会..
我使用 Openerp v7 ..
我从mail_mail.py修改了_get_default_from。
def _get_default_from(self, cr,uid, context=None):
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:
return this.email
raise osv.except_osv(_('Invalid Action!'), _("Unable to send email, please configure the sender's email address or alias."))
_defaults = {
'state': 'outgoing',
'email_from': lambda self, cr, uid, ctx=None: self._get_default_from(cr, uid,ctx),
}