replace partner_ids by recipient_ids(partner + email)
This commit is contained in:
parent
da9b44114c
commit
6f271f464d
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user