Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2 Replies
371 Tampilan

I am creating a survey (over 100 questions). When I'm at the end of the survey and "Add New Question", the question gets placed somewhere in the middle of the survey seemingly at random. Also, when making any change, the refreshed page will show questions 1 - 39, which then means I have to page through to get to the end of the survey each and every time. 

Does anyone have any ideas how to get around this behaviour?

Avatar
Buang

Try to work in smaller batches. This can help you manage the process more efficiently and reduce the number of page refreshes and reordering needed.

Penulis Jawaban Terbai

Thanks for your reply, I was hoping for a work-around rather than having to code something.



Avatar
Buang
Penulis

Do you mean smaller surveys or saving and exiting the edit process frequently?

Jawaban Terbai

Add a sequence field to the survey.question model to explicitly control the order of questions.
class SurveyQuestion(models.Model):

    _inherit = 'survey.question'

    sequence = fields.Integer(string='Sequence', default=10)

    _order = 'sequence'



Avatar
Buang