Skip to content

Instantly share code, notes, and snippets.

View trcarden's full-sized avatar

Timothy Cardenas trcarden

View GitHub Profile
@trcarden
trcarden / odoo-sh.py
Created November 2, 2016 17:28 — forked from dreispt/odoo-sh.py
Odoo Shell: run Odoo commands without a server RPC connection
"""
Setup:
Assuming Odoo 8.0 sources at ~/odoo:
$ cp odoo-sh.py ~/odoo
$ cd ~/odoo
$ python -i odoo-sh.py
Usage example:
>>> env = connect('my-db-name')
>>> Users = env['res.users']