[FIX] base_import_module: allow selective access to module files
[FIX] base_import_module: allow selective access to module files

As a consequence of rev. 76cd8d2558d2a1fc11681dbc4a134ba06fb698c0,
imported modules were unable to access their resource files during
import.

Rather than further modifying the file_open API to whitelist paths
(the whole thing needs a redesign in master), we temporarily
whitelist the temporary directory by including it in the global
addons_paths, making sure to undo it afterwards.

This gives all lower level function access the resource files via
file_open, without having to pass around whitelisted paths
through many different calls.

synconics/odoo,NeovaHealth/odoo,diagramsoftware/odoo,datenbetrieb/odoo,Nowheresly/odoo,diagramsoftware/odoo,leorochael/odoo,OpenUpgrade/OpenUpgrade,makinacorpus/odoo,ygol/odoo,Elico-Corp/odoo_OCB,Nowheresly/odoo,hip-odoo/odoo,Nowheresly/odoo,diagramsoftware/odoo,diagramsoftware/odoo,spadae22/odoo,Nowheresly/odoo,Nowheresly/odoo,leorochael/odoo,glovebx/odoo,CatsAndDogsbvba/odoo,leorochael/odoo,datenbetrieb/odoo,vnsofthe/odoo,funkring/fdoo,ygol/odoo,NeovaHealth/odoo,ygol/odoo,alexcuellar/odoo,makinacorpus/odoo,makinacorpus/odoo,odootr/odoo,ygol/odoo,diagramsoftware/odoo,vnsofthe/odoo,hip-odoo/odoo,hip-odoo/odoo,Elico-Corp/odoo_OCB,alexcuellar/odoo,leorochael/odoo,glovebx/odoo,datenbetrieb/odoo,spadae22/odoo,funkring/fdoo,funkring/fdoo,vnsofthe/odoo,CatsAndDogsbvba/odoo,Elico-Corp/odoo_OCB,NeovaHealth/odoo,odootr/odoo,makinacorpus/odoo,odootr/odoo,alexcuellar/odoo,ygol/odoo,odootr/odoo,vnsofthe/odoo,OpenUpgrade/OpenUpgrade,OpenUpgrade/OpenUpgrade,glovebx/odoo,funkring/fdoo,datenbetrieb/odoo,Nowheresly/odoo,spadae22/odoo,NeovaHealth/odoo,spadae22/odoo,diagramsoftware/odoo,makinacorpus/odoo,hip-odoo/odoo,vnsofthe/odoo,synconics/odoo,vnsofthe/odoo,leorochael/odoo,NeovaHealth/odoo,tvibliani/odoo,odootr/odoo,tvibliani/odoo,alexcuellar/odoo,CatsAndDogsbvba/odoo,hip-odoo/odoo,datenbetrieb/odoo,tvibliani/odoo,leorochael/odoo,datenbetrieb/odoo,glovebx/odoo,synconics/odoo,alexcuellar/odoo,Elico-Corp/odoo_OCB,CatsAndDogsbvba/odoo,glovebx/odoo,makinacorpus/odoo,funkring/fdoo,synconics/odoo,synconics/odoo,CatsAndDogsbvba/odoo,CatsAndDogsbvba/odoo,vnsofthe/odoo,alexcuellar/odoo,Elico-Corp/odoo_OCB,datenbetrieb/odoo,OpenUpgrade/OpenUpgrade,synconics/odoo,hip-odoo/odoo,NeovaHealth/odoo,ygol/odoo,OpenUpgrade/OpenUpgrade,leorochael/odoo,diagramsoftware/odoo,glovebx/odoo,makinacorpus/odoo,odootr/odoo,synconics/odoo,tvibliani/odoo,spadae22/odoo,spadae22/odoo,funkring/fdoo,OpenUpgrade/OpenUpgrade,CatsAndDogsbvba/odoo,tvibliani/odoo,Elico-Corp/odoo_OCB,ygol/odoo,odootr/odoo,Nowheresly/odoo,tvibliani/odoo,NeovaHealth/odoo,spadae22/odoo,funkring/fdoo,alexcuellar/odoo,glovebx/odoo,tvibliani/odoo,OpenUpgrade/OpenUpgrade