[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
Some checks failed
pre-commit / pre-commit (pull_request) Failing after 1m32s
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user