[FIX] stock: Transfering the pack
[FIX] stock: Transfering the pack

When transfering the pack, the priority to the moves in state "assigned"
or partially_available(=true) must be given.

Used case (steps):

-set warehouse with three steps to delivery
-create one product A with qty on hand 10
-create sale order with first line product A by qty 2 and the second line with product A with qty 10
-confirm sale order
-check availability
-transfer pick by qty 10
-transfer pack by qty 10

The pack couldn't be transered

Now the pack is transfered.

Closes: #10764

opw:668682

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