Mailing : actions #42
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user