replace partner_ids by recipient_ids(partner + email)

This commit is contained in:
Youssef Elouahby 2018-11-13 02:19:19 +01:00
parent da9b44114c
commit 6f271f464d

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',