Fix setting of environments as Environment was moved under odoo.api in O...

...doo 8