First Steps with ownerp.io - Visual Code based on OpenVSCode
03.11.2025
1.105.1 - Odoo 16-19
- 1.1 Login
- 1.1.1.1 VS Code
- 1.1.1.2 pgAdmin
- 1.1.1.3 FastReport
- 1.1.1.4 smtp
- 1.1.1.5 Odoo Run
- 1.1.2 Global settings
- 1.1.3 Access from shell
- 1.1.3.1 Before update manually
- 1.1.3.2 After update manually
- 1.1.4 Before update Docker compose
- 1.1.5 After update use
- 1.1.6 Update .zshrc
- 1.2 Python Version
- 1.2.1 Install Extensions:
- 1.1 Login
- 2 IMPORTANT DEBUGGING
- 3 Unique steps:
- 3.1 Connect gitlab & github and ownerp.io
- 3.1.1 git username / email
- 3.2 Pull dev-helpers
- 3.2.1 myodoo.sh branch pull
- 3.3 Do the Inital scripts
- 3.3.1 ownerp.io branch pull
- 3.3.2 pull servers
- 3.4 Installations:
- 3.1 Connect gitlab & github and ownerp.io
- 4 More steps / usage:
- 4.1 How to change the Python Interpreter?
- 4.2 How to add python libs to the venv?
- 4.3 Pull repositories/ update (was switch-to-develop before)
- 4.4 Database restore
- 4.4.1 cloud download
- 4.4.2 Cloud Download use
- 4.4.3 cd command
- 4.4.4 Use restore script alias
- 4.5 Start database / Odoo:
- 4.6 Kill all Python processes
- 4.7 Make your own Config files
- 4.8 Pull process
- 4.8.1 pull with shell
- 4.9 Commit & Push process
- 4.10 Open second terminal:
- 4.11 SQL queries over PG Admin in browser
- 4.12 Important Shell Shortcuts and tmux: Cheat Sheet für ownerp.io Shortcuts
Login
XX placeholder f.e. vs00…
VS Code
Open the URL https://vsXX.ownerp.io/?tkn=YourToken in a browser.
pgAdmin
Open the URL https://pgXX.ownerp.io in a browser.
FastReport
Open the URL https://frXX.ownerp.io in a browser.
smtp
Open the URL https://smtpXX.ownerp.io in a browser.
Odoo Run
Open the URL https://devXX.ownerp.io in a browser for Odoo Port 8069
Open the URL https://devXX-2.ownerp.io in a browser for Odoo Port 9069
(Credentials from Admin )
Global settings
Set some global settings
You can enhance the global settings of VS Code with these parameters.
{
"terminal.integrated.cwd": "${workspaceFolder}",
"editor.renderWhitespace": "all",
"editor.fontSize": 16,
"debug.console.fontSize": 16,
"terminal.integrated.sendKeybindingsToShell": true,
"terminal.integrated.fontSize": 16,
"git.enableSmartCommit": true,
"git.autoRepositoryDetection": "subFolders",
"git.autofetch": true,
"git.confirmSync": false,
"explorer.confirmDragAndDrop": false,
"editor.accessibilityPageSize": 13,
"workbench.startupEditor": "none",
"workbench.colorTheme": "Tomorrow Night Blue",
"terminal.integrated.automationProfile.linux": {
}
}Access from shell
ver="0x"
zshver="zshrc_1.105.1"# fish
set ver "0x"
set zshver="zshrc_1.105.1"
docker exec -ti dev-vs-$ver env COLUMNS=$COLUMNS LINES=$LINES TERM=$TERM /bin/zshBefore update manually
mkdir -p /home/workspace/.ssh && yes | cp /home/openvscode-server/.ssh/* /home/workspace/.sshAfter update manually
mkdir -p /home/openvscode-server/.ssh && yes | cp /home/workspace/.ssh/* /home/openvscode-server/.ssh
Before update Docker compose
docker exec -ti dev-vs-$ver env COLUMNS=$COLUMNS LINES=$LINES TERM=$TERM /bin/zsh -c 'mkdir -p /home/workspace/.ssh && yes | cp /home/openvscode-server/.ssh/* /home/workspace/.ssh'docker compose -p dev$ver -f docker-compose-dev$ver.yml downdocker pull dpage/pgadmin4:latestdocker pull axllent/mailpit:latestmce docker-compose-dev$ver.yml After update use
docker compose -p dev$ver -f docker-compose-dev$ver.yml up -ddocker exec -ti dev-vs-$ver env COLUMNS=$COLUMNS LINES=$LINES TERM=$TERM /bin/zsh -c 'mkdir -p /home/openvscode-server/.ssh && yes | cp /home/workspace/.ssh/* /home/openvscode-server/.ssh'Update .zshrc
docker exec -ti dev-vs-$ver env COLUMNS=$COLUMNS LINES=$LINES TERM=$TERM /bin/zsh -c 'wget -O /home/workspace/.zshrc https://rm.ownerp.io/staff/$zshver'
The Visual Studio Code screen appears in Browser.
Python Version
Use the latest Python Version in VSC.
Install Extensions:
Necessary: Python, Jupyter, Gitlens
Other Extensions & Themes can be installed optional.
IMPORTANT DEBUGGING
ONLY DEBUGGING POSSIBLE YOU SHOULD SET WORKER=0 IN ODOO.CONF
Unique steps:
Connect gitlab & github and ownerp.io
To connect the VM to Gitlab, generate the key as described in the article Cheat Sheet for VM Shell Shortcuts under Prepare git Access.
Then go to Gitlab and store the key in the profile under Settings > SSH Key.
With the same key you should also connect to your Github https://github.com/ account: go to your user top right > Settings> SSH & GPG Keys
New SSH Key entry: