[FIX] Fix check_xml when inheriting from views created in the same module
[FIX] Fix check_xml when inheriting from views created in the same module

When inheriting from a view in extension mode created in the same module, this
view was not loaded during check_xml of the last view.
This caused an error when the last view wants to modify elements added
by its direct parent view.

Example :
- View1, created in module "account"
- View2, mode extension, created in module "customer", inherits View1
- View3, created in module "customer", inherits View2

During update of module "customer", when loading View3, the check_xml
call didn't load View2, because it's defined in the same module (and,
obviously, this module has not be totally loaded at this point)

This is fixed by adding direct parent of each loaded view in the
check_view_ids list in context, to force them to be loaded.

Closes #9135

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