Return list of instance as result of test recurrence rule wizard

Since 0db956eb2505 the on_change_with for xxx2Many must return a list of
instances.

Closes #12885
This commit is contained in:
Cédric Krier
2024-01-11 22:02:48 +01:00
parent f8e095826d
commit 2e08be99c7
+1 -2
View File
@@ -279,8 +279,7 @@ class TestRecurrenceRuleSetView(ModelView):
datetime = dt.datetime.combine(self.start_date, dt.time())
for date in rruleset.xafter(datetime, self.count, inc=True):
result.append(Result(date=date.date()))
self.result = result
return self._changed_values.get('result', [])
return result
class TestRecurrenceRuleSetViewResult(ModelView):