Skip to content

Instantly share code, notes, and snippets.

@rvalyi
Last active March 12, 2018 17:13
Show Gist options
  • Select an option

  • Save rvalyi/3cd204146c73449dd6e6df9394ffb8eb to your computer and use it in GitHub Desktop.

Select an option

Save rvalyi/3cd204146c73449dd6e6df9394ffb8eb to your computer and use it in GitHub Desktop.
apply the following patch to Odoo:
diff --git a/odoo/cli/command.py b/odoo/cli/command.py
index cf9a410..7de4208 100644
--- a/odoo/cli/command.py
+++ b/odoo/cli/command.py
@@ -42,7 +42,11 @@ def main():
args = args[1:]
# Default legacy command
- command = "server"
+ print("SHELL ENV VAR VALUE:", os.environ.get('SHELL'), commands)
+ if os.environ.get('SHELL'):
+ command = "shell"
+ else:
+ command = "server"
# TODO: find a way to properly discover addons subcommands without importing the world
# Subcommand discovery
then open a new Voodoo console with voodoo open
then inside that new Vodoo console run:
export SHELL=1
ak run
and voila! You are actually running odoo shell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment