added 'through: :stock_items' to 'has_many :stock_movements' relation in variant class
added 'through: :stock_items' to 'has_many :stock_movements' relation in variant class

Fixes #4707

grzlus/solidus,SadTreeFriends/spree,trigrass2/spree,sideci-sample/sideci-sample-spree,firman/spree,Senjai/solidus,groundctrl/spree,PhoenixTeam/spree_phoenix,KMikhaylovCTG/spree,abhishekjain16/spree,camelmasa/spree,Ropeney/spree,zaeznet/spree,grzlus/solidus,priyank-gupta/spree,rajeevriitm/spree,tesserakt/clean_spree,lyzxsc/spree,wolfieorama/spree,lsirivong/solidus,Mayvenn/spree,azranel/spree,kewaunited/spree,Hawaiideveloper/shoppingcart,Hawaiideveloper/shoppingcart,mindvolt/spree,Kagetsuki/spree,woboinc/spree,lyzxsc/spree,Kagetsuki/spree,firman/spree,xuewenfei/solidus,vcavallo/spree,gautamsawhney/spree,raow/spree,ramkumar-kr/spree,dandanwei/spree,lyzxsc/spree,StemboltHQ/spree,vulk/spree,Boomkat/spree,siddharth28/spree,orenf/spree,keatonrow/spree,adaddeo/spree,FadliKun/spree,zamiang/spree,edgward/spree,gautamsawhney/spree,ckk-scratch/solidus,lsirivong/solidus,JuandGirald/spree,ayb/spree,calvinl/spree,project-eutopia/spree,Engeltj/spree,nooysters/spree,vinayvinsol/spree,DarkoP/spree,rajeevriitm/spree,joanblake/spree,grzlus/solidus,jeffboulet/spree,grzlus/solidus,agient/agientstorefront,berkes/spree,AgilTec/spree,TrialGuides/spree,cutefrank/spree,gregoryrikson/spree-sample,softr8/spree,scottcrawford03/solidus,vcavallo/spree,jparr/spree,DynamoMTL/spree,azranel/spree,shekibobo/spree,volpejoaquin/spree,woboinc/spree,derekluo/spree,pulkit21/spree,firman/spree,mleglise/spree,yushine/spree,athal7/solidus,Kagetsuki/spree,APohio/spree,reinaris/spree,edgward/spree,camelmasa/spree,net2b/spree,vulk/spree,Lostmyname/spree,sliaquat/spree,dafontaine/spree,gautamsawhney/spree,project-eutopia/spree,thogg4/spree,siddharth28/spree,maybii/spree,shaywood2/spree,SadTreeFriends/spree,jimblesm/spree,APohio/spree,tomash/spree,yiqing95/spree,piousbox/spree,vmatekole/spree,trigrass2/spree,Engeltj/spree,Arpsara/solidus,SadTreeFriends/spree,derekluo/spree,odk211/spree,woboinc/spree,robodisco/spree,patdec/spree,alvinjean/spree,Ropeney/spree,sunny2601/spree,patdec/spree,TimurTarasenko/spree,locomotivapro/spree,alvinjean/spree,zamiang/spree,project-eutopia/spree,nooysters/spree,dotandbo/spree,ramkumar-kr/spree,FadliKun/spree,calvinl/spree,jspizziri/spree,jsurdilla/solidus,vinayvinsol/spree,ujai/spree,Arpsara/solidus,CJMrozek/spree,jaspreet21anand/spree,kewaunited/spree,KMikhaylovCTG/spree,maybii/spree,Boomkat/spree,moneyspyder/spree,forkata/solidus,fahidnasir/spree,ramkumar-kr/spree,Boomkat/spree,orenf/spree,TrialGuides/spree,piousbox/spree,adaddeo/spree,scottcrawford03/solidus,surfdome/spree,brchristian/spree,project-eutopia/spree,robodisco/spree,KMikhaylovCTG/spree,yiqing95/spree,dandanwei/spree,carlesjove/spree,reidblomquist/spree,Engeltj/spree,lsirivong/spree,xuewenfei/solidus,athal7/solidus,grzlus/spree,imella/spree,shaywood2/spree,wolfieorama/spree,reinaris/spree,welitonfreitas/spree,berkes/spree,dafontaine/spree,wolfieorama/spree,assembledbrands/spree,yiqing95/spree,vulk/spree,SadTreeFriends/spree,pervino/solidus,TimurTarasenko/spree,jasonfb/spree,softr8/spree,odk211/spree,brchristian/spree,vmatekole/spree,berkes/spree,useiichi/spree,athal7/solidus,jeffboulet/spree,groundctrl/spree,njerrywerry/spree,njerrywerry/spree,welitonfreitas/spree,azclick/spree,beni55/spree,caiqinghua/spree,abhishekjain16/spree,freerunningtech/spree,JDutil/spree,CJMrozek/spree,bonobos/solidus,quentinuys/spree,tesserakt/clean_spree,fahidnasir/spree,jspizziri/spree,grzlus/spree,zamiang/spree,scottcrawford03/solidus,madetech/spree,devilcoders/solidus,Engeltj/spree,hifly/spree,cutefrank/spree,TrialGuides/spree,thogg4/spree,radarseesradar/spree,jeffboulet/spree,hifly/spree,builtbybuffalo/spree,useiichi/spree,njerrywerry/spree,vcavallo/spree,raow/spree,JDutil/spree,Mayvenn/spree,Hawaiideveloper/shoppingcart,piousbox/spree,surfdome/spree,kewaunited/spree,jparr/spree,siddharth28/spree,carlesjove/spree,jimblesm/spree,maybii/spree,pervino/solidus,builtbybuffalo/spree,reinaris/spree,gregoryrikson/spree-sample,JuandGirald/spree,DarkoP/spree,richardnuno/solidus,jasonfb/spree,jspizziri/spree,FadliKun/spree,jaspreet21anand/spree,Senjai/solidus,groundctrl/spree,DynamoMTL/spree,Lostmyname/spree,sfcgeorge/spree,jasonfb/spree,miyazawatomoka/spree,hifly/spree,ujai/spree,madetech/spree,delphsoft/spree-store-ballchair,vinsol/spree,mleglise/spree,athal7/solidus,Machpowersystems/spree_mach,degica/spree,moneyspyder/spree,odk211/spree,grzlus/spree,tancnle/spree,grzlus/spree,quentinuys/spree,Senjai/solidus,devilcoders/solidus,fahidnasir/spree,dotandbo/spree,AgilTec/spree,pervino/spree,pervino/spree,yushine/spree,delphsoft/spree-store-ballchair,dafontaine/spree,Migweld/spree,Lostmyname/spree,rbngzlv/spree,jparr/spree,pervino/spree,progsri/spree,JuandGirald/spree,raow/spree,Arpsara/solidus,mleglise/spree,mindvolt/spree,maybii/spree,tomash/spree,rbngzlv/spree,trigrass2/spree,reidblomquist/spree,jaspreet21anand/spree,sunny2601/spree,mindvolt/spree,KMikhaylovCTG/spree,jeffboulet/spree,vmatekole/spree,sfcgeorge/spree,pulkit21/spree,zaeznet/spree,odk211/spree,azclick/spree,surfdome/spree,yushine/spree,lsirivong/spree,Migweld/spree,priyank-gupta/spree,vinsol/spree,beni55/spree,dafontaine/spree,JuandGirald/spree,useiichi/spree,ayb/spree,freerunningtech/spree,njerrywerry/spree,vcavallo/spree,sfcgeorge/spree,CiscoCloud/spree,reinaris/spree,delphsoft/spree-store-ballchair,edgward/spree,PhoenixTeam/spree_phoenix,rakibulislam/spree,NerdsvilleCEO/spree,APohio/spree,JDutil/spree,Hawaiideveloper/shoppingcart,locomotivapro/spree,AgilTec/spree,agient/agientstorefront,omarsar/spree,robodisco/spree,moneyspyder/spree,ahmetabdi/spree,joanblake/spree,yiqing95/spree,jimblesm/spree,vinsol/spree,jspizziri/spree,Machpowersystems/spree_mach,StemboltHQ/spree,dandanwei/spree,robodisco/spree,jimblesm/spree,jordan-brough/solidus,derekluo/spree,lyzxsc/spree,jparr/spree,xuewenfei/solidus,tailic/spree,sliaquat/spree,gregoryrikson/spree-sample,hoanghiep90/spree,devilcoders/solidus,ayb/spree,StemboltHQ/spree,mindvolt/spree,tesserakt/clean_spree,joanblake/spree,LBRapid/spree,softr8/spree,NerdsvilleCEO/spree,ayb/spree,forkata/solidus,sfcgeorge/spree,orenf/spree,net2b/spree,tancnle/spree,azranel/spree,nooysters/spree,FadliKun/spree,thogg4/spree,dotandbo/spree,miyazawatomoka/spree,keatonrow/spree,dandanwei/spree,tailic/spree,archSeer/spree,rakibulislam/spree,miyazawatomoka/spree,volpejoaquin/spree,Kagetsuki/spree,locomotivapro/spree,madetech/spree,moneyspyder/spree,jsurdilla/solidus,shekibobo/spree,DynamoMTL/spree,jaspreet21anand/spree,bricesanchez/spree,carlesjove/spree,camelmasa/spree,trigrass2/spree,TrialGuides/spree,patdec/spree,madetech/spree,builtbybuffalo/spree,quentinuys/spree,edgward/spree,hoanghiep90/spree,archSeer/spree,adaddeo/spree,DarkoP/spree,delphsoft/spree-store-ballchair,welitonfreitas/spree,tomash/spree,pulkit21/spree,pervino/spree,tancnle/spree,bonobos/solidus,assembledbrands/spree,locomotivapro/spree,reidblomquist/spree,ahmetabdi/spree,degica/spree,NerdsvilleCEO/spree,radarseesradar/spree,forkata/solidus,archSeer/spree,alejandromangione/spree,NerdsvilleCEO/spree,lsirivong/solidus,Migweld/spree,bonobos/solidus,ckk-scratch/solidus,dotandbo/spree,radarseesradar/spree,Ropeney/spree,CiscoCloud/spree,TimurTarasenko/spree,DarkoP/spree,fahidnasir/spree,net2b/spree,omarsar/spree,yomishra/pce,degica/spree,pulkit21/spree,freerunningtech/spree,hoanghiep90/spree,abhishekjain16/spree,tesserakt/clean_spree,radarseesradar/spree,bricesanchez/spree,AgilTec/spree,Senjai/solidus,LBRapid/spree,volpejoaquin/spree,shaywood2/spree,jordan-brough/solidus,vinayvinsol/spree,omarsar/spree,rajeevriitm/spree,alvinjean/spree,bonobos/solidus,scottcrawford03/solidus,abhishekjain16/spree,sunny2601/spree,Mayvenn/spree,softr8/spree,rajeevriitm/spree,PhoenixTeam/spree_phoenix,jasonfb/spree,yushine/spree,miyazawatomoka/spree,brchristian/spree,LBRapid/spree,Migweld/spree,gautamsawhney/spree,Machpowersystems/spree_mach,lsirivong/spree,rakibulislam/spree,raow/spree,sliaquat/spree,yomishra/pce,archSeer/spree,caiqinghua/spree,piousbox/spree,imella/spree,berkes/spree,firman/spree,progsri/spree,groundctrl/spree,shaywood2/spree,agient/agientstorefront,vulk/spree,alejandromangione/spree,forkata/solidus,bricesanchez/spree,rakibulislam/spree,quentinuys/spree,JDutil/spree,priyank-gupta/spree,nooysters/spree,jordan-brough/solidus,keatonrow/spree,joanblake/spree,beni55/spree,lsirivong/solidus,ckk-scratch/solidus,progsri/spree,devilcoders/solidus,surfdome/spree,tailic/spree,sideci-sample/sideci-sample-spree,imella/spree,camelmasa/spree,rbngzlv/spree,adaddeo/spree,azclick/spree,hoanghiep90/spree,pervino/solidus,caiqinghua/spree,welitonfreitas/spree,jsurdilla/solidus,brchristian/spree,cutefrank/spree,alejandromangione/spree,Boomkat/spree,jsurdilla/solidus,ujai/spree,calvinl/spree,agient/agientstorefront,shekibobo/spree,karlitxo/spree,net2b/spree,kewaunited/spree,Lostmyname/spree,rbngzlv/spree,Mayvenn/spree,sunny2601/spree,derekluo/spree,CJMrozek/spree,Arpsara/solidus,APohio/spree,patdec/spree,cutefrank/spree,Ropeney/spree,vinayvinsol/spree,karlitxo/spree,alvinjean/spree,keatonrow/spree,lsirivong/spree,mleglise/spree,builtbybuffalo/spree,richardnuno/solidus,gregoryrikson/spree-sample,volpejoaquin/spree,azclick/spree,tancnle/spree,siddharth28/spree,thogg4/spree,omarsar/spree,wolfieorama/spree,calvinl/spree,richardnuno/solidus,ahmetabdi/spree,CiscoCloud/spree,sliaquat/spree,progsri/spree,jordan-brough/solidus,pervino/solidus,richardnuno/solidus,beni55/spree,sideci-sample/sideci-sample-spree,vmatekole/spree,useiichi/spree,tomash/spree,caiqinghua/spree,zamiang/spree,karlitxo/spree,xuewenfei/solidus,shekibobo/spree,azranel/spree,reidblomquist/spree,DynamoMTL/spree,assembledbrands/spree,yomishra/pce,ckk-scratch/solidus,priyank-gupta/spree,CiscoCloud/spree,zaeznet/spree,hifly/spree,vinsol/spree,PhoenixTeam/spree_phoenix,zaeznet/spree,ramkumar-kr/spree,TimurTarasenko/spree,CJMrozek/spree,karlitxo/spree,carlesjove/spree,ahmetabdi/spree,alejandromangione/spree,orenf/spree