Mailing : actions #42

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

View File

@ -25,13 +25,14 @@ class GolemMailPresendWizard(models.TransientModel):
""" GOLEM Mail Presend Wizard """
_name = 'golem.mail.presend.wizard'
partner_ids = fields.Many2many('res.partner')
recipient_ids = fields.One2many('golem.mail.recipient', 'presend_wizard_id')
@api.multi
def edit_email(self):
""" Call mail_compose_message wizard """
self.ensure_one()
wizard = self[0]
emails = wizard.recipient_ids.mapped('email')
return {
'name' : _('Search results'),
'type' : 'ir.actions.act_window',