[FIX] base: only run postinstall tests for installed or updated modules
[FIX] base: only run postinstall tests for installed or updated modules

Uninstalled modules are skipped with the filtering on the state.
Fixes #9768, Closes #11378

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