One2Many isn’t updating using on_change_with
While using on_change_with, the one2many is not updating automatically. It is getting updated after saving.
@fields.depends(
'test',
)
def on_change_with_critearea(self):
vals = []
if self.test:
for test_critearea in self.test.critearea:
vals.append({
'name': test_critearea.name,
'lower_limit': test_critearea.lower_limit,
'upper_limit': test_critearea.upper_limit,
})
return vals
The one2many should update after selecting the test type (in screenshot attached). Only blank spaces are showing.
Note- The same is working fine in gtk-client.
Files
Download | Creator | Timestamp | Type |
---|---|---|---|
before_saving.png | @manish | 2021-02-03 06:53:59.033000 UTC | image/png |