Return list of instance as result of test tax wizard
Since 0db956eb2505 the on_change_with for xxx2Many must return a list of instances. Closes #12852
This commit is contained in:
@@ -1928,8 +1928,7 @@ class TestTaxView(ModelView, TaxableMixin):
|
||||
for taxline in self._get_taxes():
|
||||
del taxline['manual']
|
||||
result.append(Result(**taxline))
|
||||
self.result = result
|
||||
return self._changed_values.get('result', [])
|
||||
return result
|
||||
|
||||
|
||||
class TestTaxViewResult(ModelView):
|
||||
|
||||
Reference in New Issue
Block a user