When synchronize inventory to outgoing moves, the origin of the inventory is
updated to point to the new corresponding outgoing move instead of the
original one.
Closes#12272
(grafted from 72fbac94b52006eaa854786b60aa1faf1a2c8d48)
--HG--
branch : 6.0