Files
odoo_source/openerp/cli/__init__.py
T
Daniel Reis 9ed13353c0 [IMP] add odoo.py shell subcommand
It starts an interactive Python console. If a database is provided, with the
`-d` argument `env` is bound to an Environement with the uid and context of
SUPERUSER_ID and `self` is bound to a RecordSet of the corresponding res.users.

Courtesy of Daniel Reis, reworked to be a bit more agnostic.

Command class is moved from __init__.py to command.py to improve imports of
__init__.py
2014-12-21 02:42:28 +01:00

14 lines
158 B
Python

import logging
import sys
import os
import openerp
from command import Command, main
import deploy
import scaffold
import server
import shell
import start