Mailing : actions #42

Open
youssef wants to merge 33 commits from youssef/GOLEM:Mailing_actions into master
Showing only changes of commit 2592404efd - Show all commits

View File

@ -30,6 +30,9 @@ class GolemMember(models.Model):
partners = self.mapped('partner_id').ids
presend_wizard = self.env['golem.mail.presend.wizard'].create(
{'partner_ids': [(6, 0, partners)]})
for partner in partners:
self.env['golem.mail.recipient'].create({'partner_id': partner,
'presend_wizard_id': presend_wizard.id})
return {
'type': 'ir.actions.act_window',
'name': 'Member mass mailing',