From 5844fa4a2a1ea164475ca0870c7b3ea1344de1c1 Mon Sep 17 00:00:00 2001 From: Nicolas Lempereur Date: Mon, 10 Aug 2015 14:00:48 +0200 Subject: [PATCH] [FIX] survey: partner access to survey input Allow the partner associated to a survey user input to read the data on this output. A survey can be created by a different user than the one filling it, for example an appraisal interview request can be created by another user than its interviewer. In this case if the interviewer is not Survey / Manager an error would happen. closes #7978 opw-644791 --- addons/survey/security/survey_security.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/survey/security/survey_security.xml b/addons/survey/security/survey_security.xml index 7375cf227ab..97bcb8cc65e 100644 --- a/addons/survey/security/survey_security.xml +++ b/addons/survey/security/survey_security.xml @@ -50,7 +50,7 @@ Access to user_input for regular users - [('create_uid', '=', user.id)] + ['|', ('create_uid', '=', user.id), ('partner_id', '=', user.partner_id.id)]