[FIX] purchase: _create_invoice_line_from_vals
[FIX] purchase: _create_invoice_line_from_vals

When creating a SO in dropshipping with 'create invoice' = 'on delivery order',
the resulting invoice must not be linked to the PO but to the SO created.
Inspired from '_create_invoice_line_from_vals' in addons/sale_stock/sale_stock.py

opw:647628

rubencabrera/odoo,syci/OCB,QianBIG/odoo,poljeff/odoo,fevxie/odoo,sergio-incaser/odoo,n0m4dz/odoo,brijeshkesariya/odoo,chiragjogi/odoo,storm-computers/odoo,diagramsoftware/odoo,dalegregory/odoo,jfpla/odoo,alexcuellar/odoo,ecosoft-odoo/odoo,nuncjo/odoo,shingonoide/odoo,dsfsdgsbngfggb/odoo,BT-ojossen/odoo,BT-rmartin/odoo,shaufi/odoo,salaria/odoo,x111ong/odoo,shaufi/odoo,bplancher/odoo,laslabs/odoo,apocalypsebg/odoo,x111ong/odoo,laslabs/odoo,tinkhaven-organization/odoo,dalegregory/odoo,steedos/odoo,kittiu/odoo,Daniel-CA/odoo,factorlibre/OCB,luistorresm/odoo,srimai/odoo,odootr/odoo,hubsaysnuaa/odoo,incaser/odoo-odoo,draugiskisprendimai/odoo,CatsAndDogsbvba/odoo,jfpla/odoo,steedos/odoo,ovnicraft/odoo,JGarcia-Panach/odoo,luistorresm/odoo,dalegregory/odoo,QianBIG/odoo,OpenUpgrade/OpenUpgrade,ecosoft-odoo/odoo,steedos/odoo,jfpla/odoo,ingadhoc/odoo,Endika/OpenUpgrade,JGarcia-Panach/odoo,CatsAndDogsbvba/odoo,MarcosCommunity/odoo,ApuliaSoftware/odoo,factorlibre/OCB,Elico-Corp/odoo_OCB,datenbetrieb/odoo,hoatle/odoo,synconics/odoo,fuhongliang/odoo,datenbetrieb/odoo,fuhongliang/odoo,dsfsdgsbngfggb/odoo,sv-dev1/odoo,kittiu/odoo,fjbatresv/odoo,fevxie/odoo,provaleks/o8,chiragjogi/odoo,microcom/odoo,Maspear/odoo,syci/OCB,n0m4dz/odoo,sinbazhou/odoo,NeovaHealth/odoo,rgeleta/odoo,dsfsdgsbngfggb/odoo,shingonoide/odoo,incaser/odoo-odoo,mlaitinen/odoo,tvibliani/odoo,VielSoft/odoo,fjbatresv/odoo,grap/OpenUpgrade,fevxie/odoo,draugiskisprendimai/odoo,tinkhaven-organization/odoo,leorochael/odoo,bplancher/odoo,dfang/odoo,BT-ojossen/odoo,srimai/odoo,incaser/odoo-odoo,sinbazhou/odoo,hip-odoo/odoo,synconics/odoo,Endika/OpenUpgrade,draugiskisprendimai/odoo,glovebx/odoo,hanicker/odoo,lsinfo/odoo,Antiun/odoo,sergio-incaser/odoo,ChanduERP/odoo,ovnicraft/odoo,provaleks/o8,minhtuancn/odoo,vnsofthe/odoo,provaleks/o8,hip-odoo/odoo,slevenhagen/odoo,rahuldhote/odoo,leorochael/odoo,sysadminmatmoz/OCB,dfang/odoo,hanicker/odoo,hanicker/odoo,jiangzhixiao/odoo,fuhongliang/odoo,eino-makitalo/odoo,Noviat/odoo,ApuliaSoftware/odoo,hubsaysnuaa/odoo,minhtuancn/odoo,mustafat/odoo-1,dfang/odoo,microcom/odoo,ygol/odoo,diagramsoftware/odoo,slevenhagen/odoo,draugiskisprendimai/odoo,nuncjo/odoo,NeovaHealth/odoo,fevxie/odoo,tinkhaven-organization/odoo,fuhongliang/odoo,factorlibre/OCB,synconics/odoo,salaria/odoo,Antiun/odoo,diagramsoftware/odoo,stephen144/odoo,vnsofthe/odoo,alexcuellar/odoo,jiangzhixiao/odoo,VielSoft/odoo,tinkhaven-organization/odoo,sv-dev1/odoo,stephen144/odoo,Endika/odoo,grap/OpenUpgrade,n0m4dz/odoo,poljeff/odoo,Daniel-CA/odoo,kittiu/odoo,takis/odoo,glovebx/odoo,tangyiyong/odoo,nuncjo/odoo,gorjuce/odoo,acshan/odoo,ApuliaSoftware/odoo,xzYue/odoo,QianBIG/odoo,OpenUpgrade/OpenUpgrade,stephen144/odoo,NeovaHealth/odoo,ygol/odoo,BT-rmartin/odoo,storm-computers/odoo,dfang/odoo,fevxie/odoo,rahuldhote/odoo,Endika/odoo,n0m4dz/odoo,Elico-Corp/odoo_OCB,salaria/odoo,windedge/odoo,fevxie/odoo,n0m4dz/odoo,ovnicraft/odoo,x111ong/odoo,gorjuce/odoo,MarcosCommunity/odoo,Nowheresly/odoo,JGarcia-Panach/odoo,ovnicraft/odoo,makinacorpus/odoo,markeTIC/OCB,Nowheresly/odoo,poljeff/odoo,slevenhagen/odoo,makinacorpus/odoo,lsinfo/odoo,funkring/fdoo,salaria/odoo,sysadminmatmoz/OCB,slevenhagen/odoo,rubencabrera/odoo,ChanduERP/odoo,leorochael/odoo,avoinsystems/odoo,srimai/odoo,windedge/odoo,storm-computers/odoo,BT-ojossen/odoo,Endika/OpenUpgrade,xzYue/odoo,NeovaHealth/odoo,provaleks/o8,NeovaHealth/odoo,laslabs/odoo,Adel-Magebinary/odoo,mszewczy/odoo,ShineFan/odoo,leorochael/odoo,hubsaysnuaa/odoo,luistorresm/odoo,shaufi/odoo,GauravSahu/odoo,sergio-incaser/odoo,sinbazhou/odoo,eino-makitalo/odoo,xzYue/odoo,QianBIG/odoo,NeovaHealth/odoo,tinkhaven-organization/odoo,Adel-Magebinary/odoo,mustafat/odoo-1,mszewczy/odoo,hubsaysnuaa/odoo,syci/OCB,Endika/OpenUpgrade,stephen144/odoo,Adel-Magebinary/odoo,diagramsoftware/odoo,rubencabrera/odoo,kittiu/odoo,funkring/fdoo,takis/odoo,rahuldhote/odoo,sysadminmatmoz/OCB,xzYue/odoo,hassoon3/odoo,ehirt/odoo,AuyaJackie/odoo,hoatle/odoo,sergio-incaser/odoo,acshan/odoo,nuncjo/odoo,provaleks/o8,nuncjo/odoo,AuyaJackie/odoo,AuyaJackie/odoo,ecosoft-odoo/odoo,factorlibre/OCB,JGarcia-Panach/odoo,Endika/OpenUpgrade,ChanduERP/odoo,chiragjogi/odoo,OpenUpgrade/OpenUpgrade,ChanduERP/odoo,factorlibre/OCB,odootr/odoo,CatsAndDogsbvba/odoo,hoatle/odoo,lgscofield/odoo,funkring/fdoo,Noviat/odoo,dsfsdgsbngfggb/odoo,brijeshkesariya/odoo,kybriainfotech/iSocioCRM,kybriainfotech/iSocioCRM,kybriainfotech/iSocioCRM,takis/odoo,makinacorpus/odoo,hubsaysnuaa/odoo,Endika/odoo,BT-ojossen/odoo,storm-computers/odoo,fuhongliang/odoo,ygol/odoo,MarcosCommunity/odoo,alexcuellar/odoo,poljeff/odoo,Nowheresly/odoo,markeTIC/OCB,BT-ojossen/odoo,ApuliaSoftware/odoo,shaufi10/odoo,rahuldhote/odoo,Endika/odoo,chiragjogi/odoo,JGarcia-Panach/odoo,diagramsoftware/odoo,tinkhaven-organization/odoo,sysadminmatmoz/OCB,microcom/odoo,sv-dev1/odoo,shingonoide/odoo,glovebx/odoo,dalegregory/odoo,windedge/odoo,spadae22/odoo,tinkhaven-organization/odoo,jiangzhixiao/odoo,rahuldhote/odoo,ehirt/odoo,gorjuce/odoo,ApuliaSoftware/odoo,shaufi/odoo,Nowheresly/odoo,kybriainfotech/iSocioCRM,dalegregory/odoo,rubencabrera/odoo,sv-dev1/odoo,stephen144/odoo,brijeshkesariya/odoo,Elico-Corp/odoo_OCB,avoinsystems/odoo,fjbatresv/odoo,incaser/odoo-odoo,tvibliani/odoo,odootr/odoo,Daniel-CA/odoo,hassoon3/odoo,jiangzhixiao/odoo,diagramsoftware/odoo,tangyiyong/odoo,ehirt/odoo,rgeleta/odoo,alexcuellar/odoo,GauravSahu/odoo,GauravSahu/odoo,ApuliaSoftware/odoo,lsinfo/odoo,CatsAndDogsbvba/odoo,Maspear/odoo,leorochael/odoo,AuyaJackie/odoo,hoatle/odoo,leorochael/odoo,stephen144/odoo,odootr/odoo,Noviat/odoo,lgscofield/odoo,makinacorpus/odoo,mlaitinen/odoo,srimai/odoo,Endika/OpenUpgrade,mustafat/odoo-1,lsinfo/odoo,acshan/odoo,ingadhoc/odoo,ingadhoc/odoo,OpenUpgrade/OpenUpgrade,eino-makitalo/odoo,ingadhoc/odoo,hubsaysnuaa/odoo,poljeff/odoo,shaufi10/odoo,ygol/odoo,BT-rmartin/odoo,mlaitinen/odoo,fjbatresv/odoo,hubsaysnuaa/odoo,QianBIG/odoo,Elico-Corp/odoo_OCB,ChanduERP/odoo,tangyiyong/odoo,dfang/odoo,avoinsystems/odoo,kittiu/odoo,rahuldhote/odoo,Endika/odoo,sergio-incaser/odoo,spadae22/odoo,jiangzhixiao/odoo,srimai/odoo,markeTIC/OCB,ecosoft-odoo/odoo,VielSoft/odoo,hoatle/odoo,GauravSahu/odoo,jiangzhixiao/odoo,Antiun/odoo,lsinfo/odoo,datenbetrieb/odoo,ingadhoc/odoo,sinbazhou/odoo,rahuldhote/odoo,Nowheresly/odoo,syci/OCB,shaufi10/odoo,optima-ict/odoo,acshan/odoo,windedge/odoo,mustafat/odoo-1,windedge/odoo,Antiun/odoo,spadae22/odoo,steedos/odoo,spadae22/odoo,chiragjogi/odoo,Endika/OpenUpgrade,lgscofield/odoo,MarcosCommunity/odoo,ehirt/odoo,Adel-Magebinary/odoo,syci/OCB,brijeshkesariya/odoo,markeTIC/OCB,sysadminmatmoz/OCB,vnsofthe/odoo,microcom/odoo,eino-makitalo/odoo,Noviat/odoo,mlaitinen/odoo,odootr/odoo,Daniel-CA/odoo,n0m4dz/odoo,VielSoft/odoo,leorochael/odoo,spadae22/odoo,shingonoide/odoo,shingonoide/odoo,lgscofield/odoo,dalegregory/odoo,makinacorpus/odoo,ehirt/odoo,tangyiyong/odoo,xzYue/odoo,salaria/odoo,dsfsdgsbngfggb/odoo,datenbetrieb/odoo,rgeleta/odoo,bplancher/odoo,sv-dev1/odoo,MarcosCommunity/odoo,datenbetrieb/odoo,rgeleta/odoo,shaufi/odoo,incaser/odoo-odoo,apocalypsebg/odoo,kittiu/odoo,lsinfo/odoo,alexcuellar/odoo,mszewczy/odoo,Maspear/odoo,takis/odoo,rubencabrera/odoo,AuyaJackie/odoo,luistorresm/odoo,spadae22/odoo,laslabs/odoo,Endika/odoo,gorjuce/odoo,provaleks/o8,mszewczy/odoo,AuyaJackie/odoo,dsfsdgsbngfggb/odoo,optima-ict/odoo,apocalypsebg/odoo,fuhongliang/odoo,ingadhoc/odoo,hoatle/odoo,apocalypsebg/odoo,CatsAndDogsbvba/odoo,gorjuce/odoo,QianBIG/odoo,bplancher/odoo,factorlibre/OCB,ygol/odoo,sinbazhou/odoo,srimai/odoo,dsfsdgsbngfggb/odoo,avoinsystems/odoo,hanicker/odoo,tvibliani/odoo,ovnicraft/odoo,Nowheresly/odoo,hassoon3/odoo,dalegregory/odoo,MarcosCommunity/odoo,microcom/odoo,tvibliani/odoo,microcom/odoo,acshan/odoo,windedge/odoo,brijeshkesariya/odoo,acshan/odoo,Adel-Magebinary/odoo,tvibliani/odoo,Adel-Magebinary/odoo,diagramsoftware/odoo,mustafat/odoo-1,minhtuancn/odoo,ShineFan/odoo,gorjuce/odoo,ecosoft-odoo/odoo,fevxie/odoo,ShineFan/odoo,syci/OCB,avoinsystems/odoo,x111ong/odoo,Daniel-CA/odoo,x111ong/odoo,gorjuce/odoo,Nowheresly/odoo,rgeleta/odoo,vnsofthe/odoo,shaufi10/odoo,ovnicraft/odoo,jfpla/odoo,factorlibre/OCB,Antiun/odoo,slevenhagen/odoo,spadae22/odoo,ingadhoc/odoo,acshan/odoo,sinbazhou/odoo,bplancher/odoo,BT-ojossen/odoo,JGarcia-Panach/odoo,n0m4dz/odoo,mszewczy/odoo,funkring/fdoo,nuncjo/odoo,Endika/odoo,takis/odoo,dfang/odoo,VielSoft/odoo,Noviat/odoo,ApuliaSoftware/odoo,shingonoide/odoo,vnsofthe/odoo,mustafat/odoo-1,alexcuellar/odoo,provaleks/o8,slevenhagen/odoo,shaufi/odoo,minhtuancn/odoo,mlaitinen/odoo,synconics/odoo,jiangzhixiao/odoo,mustafat/odoo-1,ShineFan/odoo,shaufi10/odoo,ygol/odoo,ChanduERP/odoo,JGarcia-Panach/odoo,sinbazhou/odoo,lsinfo/odoo,ehirt/odoo,hassoon3/odoo,Daniel-CA/odoo,avoinsystems/odoo,hip-odoo/odoo,odootr/odoo,grap/OpenUpgrade,sv-dev1/odoo,Noviat/odoo,GauravSahu/odoo,storm-computers/odoo,hip-odoo/odoo,Maspear/odoo,hip-odoo/odoo,synconics/odoo,rubencabrera/odoo,srimai/odoo,mlaitinen/odoo,BT-ojossen/odoo,grap/OpenUpgrade,GauravSahu/odoo,Elico-Corp/odoo_OCB,apocalypsebg/odoo,eino-makitalo/odoo,takis/odoo,sysadminmatmoz/OCB,MarcosCommunity/odoo,VielSoft/odoo,hassoon3/odoo,MarcosCommunity/odoo,salaria/odoo,ygol/odoo,x111ong/odoo,xzYue/odoo,avoinsystems/odoo,ShineFan/odoo,BT-rmartin/odoo,fjbatresv/odoo,Daniel-CA/odoo,Maspear/odoo,OpenUpgrade/OpenUpgrade,ChanduERP/odoo,grap/OpenUpgrade,hip-odoo/odoo,bplancher/odoo,jfpla/odoo,steedos/odoo,kybriainfotech/iSocioCRM,kybriainfotech/iSocioCRM,funkring/fdoo,shaufi10/odoo,poljeff/odoo,apocalypsebg/odoo,Elico-Corp/odoo_OCB,kybriainfotech/iSocioCRM,mszewczy/odoo,slevenhagen/odoo,minhtuancn/odoo,kittiu/odoo,Antiun/odoo,salaria/odoo,optima-ict/odoo,tvibliani/odoo,incaser/odoo-odoo,shaufi/odoo,rgeleta/odoo,optima-ict/odoo,minhtuancn/odoo,markeTIC/OCB,optima-ict/odoo,sv-dev1/odoo,funkring/fdoo,tvibliani/odoo,luistorresm/odoo,ecosoft-odoo/odoo,optima-ict/odoo,glovebx/odoo,ShineFan/odoo,draugiskisprendimai/odoo,ecosoft-odoo/odoo,poljeff/odoo,datenbetrieb/odoo,storm-computers/odoo,nuncjo/odoo,luistorresm/odoo,steedos/odoo,grap/OpenUpgrade,Maspear/odoo,apocalypsebg/odoo,rgeleta/odoo,Noviat/odoo,VielSoft/odoo,chiragjogi/odoo,lgscofield/odoo,jfpla/odoo,draugiskisprendimai/odoo,synconics/odoo,tangyiyong/odoo,vnsofthe/odoo,glovebx/odoo,Antiun/odoo,jfpla/odoo,minhtuancn/odoo,laslabs/odoo,eino-makitalo/odoo,makinacorpus/odoo,tangyiyong/odoo,datenbetrieb/odoo,sysadminmatmoz/OCB,makinacorpus/odoo,fjbatresv/odoo,synconics/odoo,windedge/odoo,luistorresm/odoo,BT-rmartin/odoo,x111ong/odoo,hanicker/odoo,draugiskisprendimai/odoo,xzYue/odoo,ShineFan/odoo,mszewczy/odoo,takis/odoo,chiragjogi/odoo,vnsofthe/odoo,brijeshkesariya/odoo,markeTIC/OCB,lgscofield/odoo,fuhongliang/odoo,odootr/odoo,mlaitinen/odoo,lgscofield/odoo,fjbatresv/odoo,GauravSahu/odoo,BT-rmartin/odoo,BT-rmartin/odoo,ehirt/odoo,AuyaJackie/odoo,ovnicraft/odoo,funkring/fdoo,rubencabrera/odoo,Adel-Magebinary/odoo,shingonoide/odoo,glovebx/odoo,alexcuellar/odoo,OpenUpgrade/OpenUpgrade,shaufi10/odoo,grap/OpenUpgrade,glovebx/odoo,laslabs/odoo,NeovaHealth/odoo,hanicker/odoo,hassoon3/odoo,steedos/odoo,tangyiyong/odoo,CatsAndDogsbvba/odoo,hanicker/odoo,sergio-incaser/odoo,OpenUpgrade/OpenUpgrade,incaser/odoo-odoo,hoatle/odoo,CatsAndDogsbvba/odoo,eino-makitalo/odoo,Maspear/odoo,brijeshkesariya/odoo,markeTIC/OCB