[IMP] survey_record_generation: add default filter on survey id and active user_input for generated records
Some checks failed
pre-commit / pre-commit (pull_request) Failing after 1m32s

This commit is contained in:
2026-03-26 11:16:19 +01:00
parent 4b66618686
commit 0d1866ace3
2 changed files with 5 additions and 1 deletions

View File

@@ -31,7 +31,7 @@ class SurveyUserInput(models.Model):
action = self.env["ir.actions.act_window"]._for_xml_id(
"survey_record_generation.survey_generated_record_action"
)
action['domain'] = [('user_input_id', '=', self.id)]
action['domain'] = [('user_input_id.survey_id', '=', self.survey_id.id)]
return action
def _mark_done(self):