Skip to content
Snippets Groups Projects
Commit 174574f6 authored by Juliana's avatar Juliana
Browse files

[FIX] Bug on survey notification right

parent 86cb973f
No related branches found
No related tags found
No related merge requests found
......@@ -53,7 +53,7 @@ class WebsiteSurveyExtend(Survey):
# Send mail auto if survey configurated
user_input.action_send_mail()
# Send notification to followers
survey.message_post(body="Nouvelle réponse à ce sondage", message_type="notification", subtype="ethikis_survey.survey_state_change")
survey.sudo().message_post(email_from="elsa@ethikis.com", body="Nouvelle réponse à ce sondage", message_type="notification", subtype="ethikis_survey.survey_state_change")
else:
vals.update({'state': 'skip'})
user_input.sudo(user=user_id).write(vals)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment