[FIX] survey_record_generation: unblock survey edition after a line without field #31

Open
vlab wants to merge 1 commits from vlab/fix-allowed-question-ids AGit into 16.0

1 Commits

Author SHA1 Message Date
Valentin Lab
87b42837ec [FIX] survey_record_generation: unblock survey edition after a line without field
Some checks failed
tests / test (pull_request) Successful in 2m1s
pre-commit / pre-commit (pull_request) Failing after 2m14s
When a record creation has a field value line whose field is not chosen yet,
``_compute_allowed_question_ids`` returned instead of moving on to the next
line. The lines computed after it were left without a value, and Odoo raised
``Compute method failed to assign ... allowed_question_ids`` on every onchange
of the survey form, so no field of the survey could be edited or deleted any
more.

Skip to the next line instead, as already done on 18.0 (94d3bd7).
2026-11-16 16:54:43 +01:00