Package: gOdoo-cli
gOdoo Dev EnvironmentgOdoois short forgo Odoo.It is aVscode DevcontainerEnvironment forOdoowith Python CLIgodooconvenience wrapper aroundodoo-bin.This repository is the base source for the Python packagegodoo-cliand serves as
an all batteries included development environment.This is the source repository forgOdoo. If you want to usegOdooplease refer to./docker/Dockerfileand modify it to install godoo using Pip.Made Possible by:WEMPE Elektronic GmbHgOdoo-cliPython package that providesgodoocommand line interface aroundodoo-bin.It's build withTyperto provide some convenience Wrappers for Odoo development and
Deployment.Most flags can be configured by Env variables.Usegodoo --helpto find out more. HINT: Install tab-completion withgodoo --install-completionDockerThis workspace also contains Docker and Docker-Compose files. \They are used to provide either easy Odoo instances where the source is pulled according toODOO_MANIFEST.yml, or as a all batteries included devcontainer for VScode.RequirementsDocker ComposeTraefikcontainer running with docker provider and "traefik" named docker network.
Example:Traefik DevproxySSH Agent running. (checkecho $SSH_AUTH_SOCK)This gets passed trough in the Buildprocess to clone Thirdparty repos (Optional).Just wanna have a quick and easy Odoo Instance?gitclonehttps://github.com/OpenJKSoftware/gOdoocdgodoo
.scripts/container_requirements.sh# Check Requirementsdocker-composebuild
docker-composeup# wait......# wait a bit mode ...# just a little bit longer ..# There we go.# Odoo should be reachable on 'https://godoo.docker.localhost' assuming you didn't change .env TRAEFIK_HOST_RULE or COMPOSE_PROJECT_NAMEDevcontainerFeaturesAll batteries includedDevcontainerwith postgres service
Container and local DNS resolvig managed byTraefik.Easy fully working Odoo instance bydocker-compose upwith https access.godooCLI wrapper around Odoo. (Most flags can be configured by Environment Variables and are already preconfigured
in the Containers. See.env.sample)Cups Container, that provides a CUPS Printserverodoo-binis added to PATH and can thus be invoked from every folder.Odoo will run in Proxy_Mode behind a Traefik reverse proxy for easy access onhttps://$COMPOSE_PROJECT_NAME.docker.localhostOdoo Pylint pluginpreconfigured in vscodePreinstalled vscode Extensions Highlights:SQL Toolswith preconfigured connection for
easy Database access in the Sidebar.Docker Extensioncontrols
container host.Odoo SnippetsOdoo Developmentscan Grab
Odoo Model information from a running ServerTodo TreeUsageFor Docker on windows: Clone the repo into the WSL2 Filesystem for better IO performanceHaveTraefikRunning ondocker.localhostExampleThere must be a Docker network calledtraefikthat can reach traefik.Open Devcontianer:If you have the Devcontainer CLI:devcontainer open .If not open the workspace in Local Vscode. In the Command pallete search forReopen in containerFromwithin the containerstart Odoo using one of the following commands:You can enable godoo tab-completion bygodoo --install-completionmake-> Loads Odoo + Workspace Addonsmake bare-> Loads Odoo with onywebinstalled.make kill-> Search forodoo-binprocesses and kill themmake reset-> Drops DB, deletes config file and datafolderThe full init script is available via "godoo". (See --help for Options)Open Odoohttps://$COMPOSE_PROJECT_NAME.docker.localhostFor exampleCOMPOSE_PROJECT_NAME=godoo-->https://godoo.docker.localhostLogin withadmin:adminProfit!Access to Odoo and Thirdparty addon SourceYou can access the Odoo source by opening the VsCode workspacefull.code-workspacefrom within
the Container. This will open aMulti-Root Workspace.
Really waiting forhttps://github.com/microsoft/vscode-remote-release/issues/3665here.Reset Devcontainer DataWhen you screwed up so bad its time to just start Over godoo has you covered:Automatic ResetThere are 3 Options to reset the Dev Env.FromOutsidethe Container runmake resetin the project root to delete docker volumes and restart the
container. (Vscode will prompt to reconnect if still open)FromOutsidethe Container runmake reset-hardin the project root to force rebuild the main Odoo container and
then do the same asmake resetFromInsidethe Container runmake resetto drop the DB and delete filestore and config file, which is way
quicker than the other options.Manual ResetClose vscodeRemoveappanddbcontainer from docker.Remove volumes:db, odoo_thirdparty, odoo_web, vscode_extensionsRestart DevcontainerPython DebuggingVsCode DebuggingDebugging doesn't reliably work withOdoo Multiprocessmode
enabled.The container ships with a Vscode Debug profile, that sets--workers 0to allow for Debugging Breakpoints. See.vscode/launch.jsonInteractive ShellUsegodoo shellto enter an interactive shell on the Database.Odoo ModulesThird Party Modules (manifest.yml)Thegodoobootstrap function, will download some modules using git.Which Repos to download is specified inODOO_MANIFEST.yml(Default)Not all of the cloned addons are automatically installed.Install them via the Apps Page in Odoo usinggodoo rpc modules installor usingodoo-bin.Modules downloaded on the Odoo Marketplace can be dropped as a.ziparchive in./thirdparty