mirror of https://github.com/OCA/social.git
[FIX] Argument auto_commit in send_mail
parent
fd098b693c
commit
0f8f11ebe7
|
@ -22,8 +22,9 @@ class MailComposeMessage(models.TransientModel):
|
||||||
followers on the related object""")
|
followers on the related object""")
|
||||||
|
|
||||||
@api.multi
|
@api.multi
|
||||||
def send_mail(self):
|
def send_mail(self, auto_commit=False):
|
||||||
for wizard in self:
|
for wizard in self:
|
||||||
super(MailComposeMessage, wizard.with_context(
|
super(MailComposeMessage, wizard.with_context(
|
||||||
mail_post_autofollow=wizard.autofollow_recipients)).send_mail()
|
mail_post_autofollow=wizard.autofollow_recipients)).send_mail(
|
||||||
return {'type': 'ir.actions.act_window_close'}
|
auto_commit=auto_commit)
|
||||||
|
return True
|
||||||
|
|
Loading…
Reference in New Issue