odoo/upgrade-util#224

Created by Upgrade, Jinane Maksoud (maji)

Blocked

label
odoo-dev:master-replace-cmp-dep-maji
head
8ab406a0743d9240514d23ff0133d492e8fb177e
odoo/upgrade-util
master #224 missing r+

[FIX] records: use temp table in replacing refs

For the jsonb company dependent indirect references when replacing record refs, building the query using the original id mapping input can generate a large query based on the number of references being updated, leading to a stack depth limit exceeded error.

We can use the mapping saved in the temp table _upgrade_rrr instead.

TBG-1752