[FIX] Emails create 'link' user input (not 'manually')

bzr revid: rim@openerp.com-20131121075612-qhyo0cykcheo36iq
This commit is contained in:
Richard Mathot (OpenERP) 2013-11-21 08:56:12 +01:00
parent de25fb0046
commit dbb0a2b8fe
1 changed files with 2 additions and 2 deletions

View File

@ -166,10 +166,10 @@ class survey_mail_compose_message(osv.TransientModel):
token = uuid.uuid4()
# create response with token
survey_response_obj.create(cr, uid, {
'date_deadline': wizard.date_deadline,
'survey_id': wizard.survey_id.id,
'deadline': wizard.date_deadline,
'date_create': datetime.now(),
'response_type': 'link',
'type': 'link',
'state': 'new',
'token': token,
'partner_id': partner_id,