server-tools icon indicating copy to clipboard operation
server-tools copied to clipboard

[14.0] onchange_helper: play_onchanges call influences NewId recordset

Open rousseldenis opened this issue 3 years ago • 2 comments

I don't know how to solve this and if it is a limitation of onchange_helper but:

  • Call play_onchanges on values like result = <model>.play_onchanges(vals, vals.keys())
  • Create a new recordset in memory: new_1 = <model>.new(result)
  • Call play_onchanges on values like result = <model>.play_onchanges(vals, vals.keys())
  • Create a new recordset in memory: new_2 = <model>.new(result)

We observe that new_1 recordset fields values are reset to default ones.

@lmignon @guewen

rousseldenis avatar Feb 24 '22 10:02 rousseldenis

@rousseldenis Currently struggling with the same issue. Are there any findings already?

baguenth avatar Apr 17 '25 09:04 baguenth

There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.

github-actions[bot] avatar Oct 19 '25 12:10 github-actions[bot]