Last active
March 12, 2018 17:13
-
-
Save rvalyi/3cd204146c73449dd6e6df9394ffb8eb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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