Member mass mailing code partners = records.getPartners() presend_wizard = env['golem.mail.presend.wizard'].create({'partner_ids': [(6, 0, partners)]}) action = { 'type': 'ir.actions.act_window', 'res_model': 'golem.mail.presend.wizard', 'res_id': presend_wizard.id, 'view_mode': 'form', 'view_type': 'form', 'target': 'new' } Member mass mailing