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
14 lines
158 B
Python
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
|