forked from Yaltik/golem
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 """
|
""" GOLEM Mail Presend Wizard """
|
||||||
_name = '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
|
@api.multi
|
||||||
def edit_email(self):
|
def edit_email(self):
|
||||||
""" Call mail_compose_message wizard """
|
""" Call mail_compose_message wizard """
|
||||||
self.ensure_one()
|
self.ensure_one()
|
||||||
wizard = self[0]
|
wizard = self[0]
|
||||||
|
emails = wizard.recipient_ids.mapped('email')
|
||||||
return {
|
return {
|
||||||
'name' : _('Search results'),
|
'name' : _('Search results'),
|
||||||
'type' : 'ir.actions.act_window',
|
'type' : 'ir.actions.act_window',
|
||||||
|
Loading…
Reference in New Issue
Block a user