odoo/upgrade-util#224

Created by Upgrade, Jinane Maksoud (maji)

Blocked

label
odoo-dev:master-replace-cmp-dep-maji
head
44e4d51c5c026daa5c881533ec51f95864230f01
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