Skip to content

Syncing from upstream OCA/web (19.0) - #1790

Merged
bt-admin merged 3 commits into
brain-tec:19.0from
OCA:19.0
Aug 31, 2026
Merged

Syncing from upstream OCA/web (19.0)#1790
bt-admin merged 3 commits into
brain-tec:19.0from
OCA:19.0

Conversation

@bt-admin

Copy link
Copy Markdown

bt_gitbot

CarlosRoca13 and others added 3 commits August 28, 2026 12:54
… on the clone

Extend the snapshot we re-apply after the onchanges to the relational types. Many2ones are copied as a new value object so both records don't share it, and many2manys through a SET command (and not LINK) so the copy ends up with exactly the same records as the source: this way we also drop the ones the onchange added on its own. One2manys can't be carried by that snapshot, as every sub-record has to be created on its own, so they are recreated line by line (recursively, for the nested ones): the copy's list is first emptied of whatever its onchanges generated, and then each line of the source is created, filled with its own snapshot and added to the list, the same way the core duplicates a record.
Signed-off-by pedrobaeza
@bt-admin bt-admin added the 19.0 label Aug 31, 2026
@bt-admin
bt-admin merged commit b03fb59 into brain-tec:19.0 Aug 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants