İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
375 Görünümler

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
Vazgeç

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.

Üretici En İyi Yanıt

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



Avatar
Vazgeç
Üretici

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

En İyi Yanıt

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
Vazgeç