[FIX] mail: env.company_id has been replaced by env.company

closes odoo/odoo#43307

Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
This commit is contained in:
Victor Feyens
2020-01-14 17:36:45 +00:00
parent cb97a92e42
commit 26779271e6
+1 -1
View File
@@ -852,7 +852,7 @@ class Message(models.Model):
'subject': subject,
'body_html': body_html,
'author_id': self.env.user.partner_id.id,
'email_from': self.env.user.email_formatted or self.env.company_id.catchall_formatted,
'email_from': self.env.user.email_formatted or self.env.company.catchall_formatted,
'email_to': msg.email_from,
'auto_delete': True,
'state': 'outgoing'