Get v8 Environment for easy access to v8 api
Get v8 Environment for easy access to v8 api

Create an api Environment with cursor, user id and context of superuser
This allows the following syntax from the get-go:
    new_partner = self.env['res.partner'].create({'name': 'bwrsandman'})
The syntax is consistent with api decorated functions and the Odoo unittest framework
anybox/anybox.recipe.odoo