Skip to content

Commit

Permalink
[13.0] [PORT] from 12.0
Browse files Browse the repository at this point in the history
[12.0] [FIX] evaluation:Fix a bug when save the questions

To keep the values of the question for a related fields, set readonly to False in the fields attributes.
An for the field related to readonly=True, remove this attribute because by default is True
  • Loading branch information
nicomacr committed Jun 19, 2020
1 parent bbeb0e0 commit bfd5a24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion evaluation/models/survey_question.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ class SurveyQuestion(models.Model):
'survey.label',
related='labels_ids',
string='Suggested answers',
readonly=False,
)
is_evaluation = fields.Boolean(
related='survey_id.is_evaluation',
readonly=True,
)

@api.depends(
Expand Down

0 comments on commit bfd5a24

Please sign in to comment.