[FIX] stock: mutation of the context
[FIX] stock: mutation of the context

If the method do_enter_transfer_details is called form the new API, the context
is a frozendict and can not be updated and the previous code would crash.

Copying it before updating.

Closes #9872

provaleks/o8,stephen144/odoo,rubencabrera/odoo,factorlibre/OCB,sysadminmatmoz/OCB,BT-rmartin/odoo,datenbetrieb/odoo,BT-ojossen/odoo,bplancher/odoo,jiangzhixiao/odoo,vnsofthe/odoo,rubencabrera/odoo,BT-rmartin/odoo,jiangzhixiao/odoo,rubencabrera/odoo,jfpla/odoo,jfpla/odoo,Nowheresly/odoo,makinacorpus/odoo,BT-ojossen/odoo,CatsAndDogsbvba/odoo,stephen144/odoo,MarcosCommunity/odoo,dfang/odoo,ehirt/odoo,factorlibre/OCB,markeTIC/OCB,storm-computers/odoo,ehirt/odoo,bplancher/odoo,eino-makitalo/odoo,draugiskisprendimai/odoo,Endika/OpenUpgrade,rubencabrera/odoo,funkring/fdoo,shingonoide/odoo,synconics/odoo,eino-makitalo/odoo,eino-makitalo/odoo,odootr/odoo,tvibliani/odoo,spadae22/odoo,alexcuellar/odoo,alexcuellar/odoo,leorochael/odoo,NeovaHealth/odoo,OpenUpgrade/OpenUpgrade,BT-rmartin/odoo,BT-rmartin/odoo,tvibliani/odoo,glovebx/odoo,factorlibre/OCB,OpenUpgrade/OpenUpgrade,Elico-Corp/odoo_OCB,funkring/fdoo,Nowheresly/odoo,ehirt/odoo,provaleks/o8,Endika/OpenUpgrade,glovebx/odoo,rubencabrera/odoo,funkring/fdoo,sysadminmatmoz/OCB,markeTIC/OCB,stephen144/odoo,funkring/fdoo,markeTIC/OCB,laslabs/odoo,draugiskisprendimai/odoo,bplancher/odoo,jfpla/odoo,NeovaHealth/odoo,Endika/OpenUpgrade,vnsofthe/odoo,CatsAndDogsbvba/odoo,glovebx/odoo,provaleks/o8,ygol/odoo,dfang/odoo,dfang/odoo,MarcosCommunity/odoo,leorochael/odoo,glovebx/odoo,factorlibre/OCB,glovebx/odoo,bplancher/odoo,makinacorpus/odoo,glovebx/odoo,stephen144/odoo,Antiun/odoo,synconics/odoo,Daniel-CA/odoo,provaleks/o8,laslabs/odoo,diagramsoftware/odoo,dfang/odoo,Endika/odoo,draugiskisprendimai/odoo,ehirt/odoo,odootr/odoo,vnsofthe/odoo,hassoon3/odoo,diagramsoftware/odoo,microcom/odoo,Elico-Corp/odoo_OCB,Endika/odoo,sergio-incaser/odoo,jfpla/odoo,jfpla/odoo,Adel-Magebinary/odoo,funkring/fdoo,tvibliani/odoo,CatsAndDogsbvba/odoo,NeovaHealth/odoo,synconics/odoo,odootr/odoo,BT-ojossen/odoo,hip-odoo/odoo,microcom/odoo,hassoon3/odoo,microcom/odoo,storm-computers/odoo,markeTIC/OCB,markeTIC/OCB,synconics/odoo,CatsAndDogsbvba/odoo,Daniel-CA/odoo,sysadminmatmoz/OCB,grap/OpenUpgrade,spadae22/odoo,sysadminmatmoz/OCB,ygol/odoo,spadae22/odoo,Adel-Magebinary/odoo,diagramsoftware/odoo,MarcosCommunity/odoo,BT-ojossen/odoo,Adel-Magebinary/odoo,ygol/odoo,makinacorpus/odoo,sysadminmatmoz/OCB,Endika/OpenUpgrade,makinacorpus/odoo,Antiun/odoo,NeovaHealth/odoo,Elico-Corp/odoo_OCB,tvibliani/odoo,factorlibre/OCB,odootr/odoo,datenbetrieb/odoo,Nowheresly/odoo,microcom/odoo,alexcuellar/odoo,MarcosCommunity/odoo,jiangzhixiao/odoo,funkring/fdoo,ygol/odoo,Daniel-CA/odoo,OpenUpgrade/OpenUpgrade,glovebx/odoo,Endika/odoo,alexcuellar/odoo,shingonoide/odoo,microcom/odoo,alexcuellar/odoo,bplancher/odoo,datenbetrieb/odoo,synconics/odoo,mustafat/odoo-1,diagramsoftware/odoo,OpenUpgrade/OpenUpgrade,factorlibre/OCB,odootr/odoo,Daniel-CA/odoo,laslabs/odoo,sergio-incaser/odoo,datenbetrieb/odoo,tvibliani/odoo,diagramsoftware/odoo,Endika/OpenUpgrade,BT-ojossen/odoo,hip-odoo/odoo,spadae22/odoo,Endika/odoo,sergio-incaser/odoo,Adel-Magebinary/odoo,grap/OpenUpgrade,ehirt/odoo,NeovaHealth/odoo,Antiun/odoo,OpenUpgrade/OpenUpgrade,shingonoide/odoo,Nowheresly/odoo,dfang/odoo,grap/OpenUpgrade,BT-ojossen/odoo,MarcosCommunity/odoo,leorochael/odoo,mustafat/odoo-1,microcom/odoo,Antiun/odoo,sergio-incaser/odoo,Daniel-CA/odoo,draugiskisprendimai/odoo,Noviat/odoo,leorochael/odoo,tvibliani/odoo,dfang/odoo,vnsofthe/odoo,laslabs/odoo,factorlibre/OCB,NeovaHealth/odoo,ehirt/odoo,Elico-Corp/odoo_OCB,CatsAndDogsbvba/odoo,jiangzhixiao/odoo,draugiskisprendimai/odoo,hassoon3/odoo,storm-computers/odoo,synconics/odoo,Endika/OpenUpgrade,markeTIC/OCB,ygol/odoo,spadae22/odoo,Endika/odoo,CatsAndDogsbvba/odoo,sergio-incaser/odoo,hip-odoo/odoo,grap/OpenUpgrade,laslabs/odoo,vnsofthe/odoo,storm-computers/odoo,hassoon3/odoo,jiangzhixiao/odoo,Endika/odoo,leorochael/odoo,Endika/odoo,shingonoide/odoo,vnsofthe/odoo,datenbetrieb/odoo,sergio-incaser/odoo,ehirt/odoo,BT-ojossen/odoo,stephen144/odoo,laslabs/odoo,mustafat/odoo-1,eino-makitalo/odoo,jfpla/odoo,alexcuellar/odoo,jfpla/odoo,funkring/fdoo,Antiun/odoo,hip-odoo/odoo,odootr/odoo,leorochael/odoo,ygol/odoo,Noviat/odoo,stephen144/odoo,alexcuellar/odoo,jiangzhixiao/odoo,bplancher/odoo,Noviat/odoo,makinacorpus/odoo,leorochael/odoo,mustafat/odoo-1,vnsofthe/odoo,Adel-Magebinary/odoo,shingonoide/odoo,markeTIC/OCB,storm-computers/odoo,Nowheresly/odoo,shingonoide/odoo,BT-rmartin/odoo,shingonoide/odoo,Elico-Corp/odoo_OCB,Noviat/odoo,Noviat/odoo,OpenUpgrade/OpenUpgrade,eino-makitalo/odoo,datenbetrieb/odoo,MarcosCommunity/odoo,Antiun/odoo,Noviat/odoo,sysadminmatmoz/OCB,MarcosCommunity/odoo,hassoon3/odoo,diagramsoftware/odoo,eino-makitalo/odoo,Nowheresly/odoo,OpenUpgrade/OpenUpgrade,spadae22/odoo,rubencabrera/odoo,ygol/odoo,tvibliani/odoo,grap/OpenUpgrade,provaleks/o8,Endika/OpenUpgrade,CatsAndDogsbvba/odoo,eino-makitalo/odoo,grap/OpenUpgrade,odootr/odoo,makinacorpus/odoo,provaleks/o8,Daniel-CA/odoo,draugiskisprendimai/odoo,Daniel-CA/odoo,mustafat/odoo-1,NeovaHealth/odoo,Nowheresly/odoo,hassoon3/odoo,datenbetrieb/odoo,hip-odoo/odoo,Adel-Magebinary/odoo,synconics/odoo,storm-computers/odoo,diagramsoftware/odoo,provaleks/o8,MarcosCommunity/odoo,mustafat/odoo-1,Adel-Magebinary/odoo,mustafat/odoo-1,hip-odoo/odoo,BT-rmartin/odoo,spadae22/odoo,draugiskisprendimai/odoo,sysadminmatmoz/OCB,rubencabrera/odoo,jiangzhixiao/odoo,makinacorpus/odoo,BT-rmartin/odoo,Elico-Corp/odoo_OCB,Antiun/odoo,Noviat/odoo,grap/OpenUpgrade