From 9b12854a4fcfb94e2a3ca509859f620fcf034e29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Fri, 18 Jan 2019 09:52:29 +0000 Subject: [PATCH] [FIX] survey: correctly check user being public when creating a new answer --- addons/survey/models/survey_survey.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/survey/models/survey_survey.py b/addons/survey/models/survey_survey.py index 79ea6473703..1a893011c3f 100644 --- a/addons/survey/models/survey_survey.py +++ b/addons/survey/models/survey_survey.py @@ -117,7 +117,7 @@ class Survey(models.Model): 'survey_id': survey.id, 'test_entry': test_entry, } - if user and not user._is_public: + if user and not user._is_public(): answer_vals['partner_id'] = user.partner_id.id answer_vals['email'] = user.email elif partner: