[FIX] mrp: name_search where args is not defined
[FIX] mrp: name_search where args is not defined

In case of name_search with no args (default None, see #8492 for example of
valid scenario, during import)
Construct the domain correcty.

Fixes #8492

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