From fd0bd4cbf7404a5c1cb6e6495b034ecf6d48d5ee Mon Sep 17 00:00:00 2001 From: youssef Date: Mon, 12 Nov 2018 18:02:42 +0100 Subject: [PATCH] small improvement --- golem_mail_member/views/golem_mail_member_views.xml | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/golem_mail_member/views/golem_mail_member_views.xml b/golem_mail_member/views/golem_mail_member_views.xml index 2e28f2a..b9a1174 100644 --- a/golem_mail_member/views/golem_mail_member_views.xml +++ b/golem_mail_member/views/golem_mail_member_views.xml @@ -24,16 +24,7 @@ along with this program. If not, see . 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' -} +action = records.get_mass_mailing_action()