GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - vertelab/odootools: Some tools for odoo cm and operations

BranchesTags
Open more actions menu

Latest commit

 

History

547 Commits
547 Commits

Folders and files

NameName
Last commit message
Last commit date
githooks
githooks
 
 
odooscaffold
odooscaffold
 
 
repos
repos
 
 
scripts
scripts
 
 
themes
themes
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
bash_completion.odoo
bash_completion.odoo
 
 
change_git_branch.sh
change_git_branch.sh
 
 
checkmodule
checkmodule
 
 
create_fake_addons.sh
create_fake_addons.sh
 
 
db_backup
db_backup
 
 
install
install
 
 
install_common
install_common
 
 
install_no_postgres_server
install_no_postgres_server
 
 
install_ocb
install_ocb
 
 
install_repos
install_repos
 
 
odoo.tools
odoo.tools
 
 
odoobackup.py
odoobackup.py
 
 
odooclonerepos.py
odooclonerepos.py
 
 
odooextras.py
odooextras.py
 
 
odoolangexport.odt
odoolangexport.odt
 
 
odoolangexport.pdf
odoolangexport.pdf
 
 
odootask.py
odootask.py
 
 
odootools.sh
odootools.sh
 
 
odooupd.py
odooupd.py
 
 
post-checkout
post-checkout
 
 
replace_manifest_version.py
replace_manifest_version.py
 
 
scaffold.tar.gz
scaffold.tar.gz
 
 
uninstall
uninstall
 
 
wkhtmltox_0.12.1.3-1~bionic_amd64.deb
wkhtmltox_0.12.1.3-1~bionic_amd64.deb
 
 

Repository files navigation

odootools for Ubuntu -- common

Tools to help to install and manage an Odoo installation.

Prerequisites

The installation scripts assume the host OS is Ubuntu 22.04. Usage on other systems might require tweaking to work.

Install

Installation of Odoo and Odootools.

Ensure you are using the version you want to install.

When you are logged in with the root-account. Run the following command.

Step 1: The command below will download and execute the installation script:

wget -O- https://raw.githubusercontent.com/vertelab/odootools/<ODOO VERSION>.0/install | bash

Step 2: Add users with these commands: Add userser

sudo adduser $USER
sudo adduser $USER sudo
sudo adduser $USER odoo

/etc/odoo/odoo.conf
admin_passwd = Silanxi9Oo23
db_password = Silanxi9Oo23

In Terminal, go to psql and run the following query:
1) sudo su postgres
2) psql
3) create user odoo with password 'Silanxi9Oo23' superuser;
4) ALTER USER user_name WITH PASSWORD 'new_password';
5) odoorestart

failed: FATAL: role "odoo" does not exist >> Use odooadminpw for password.
1) sudo su postgres
2) createuser odoo -s
3) psql template1
4) alter role odoo with password 'pnybYEg';
5) exit
https://www.odoo.com/forum/help-1/operationalerror-fatal-role-root-does-not-exist-123992

Step 3: Follow the instructions for the management of the Odoo source repositories https://github.com/vertelab/odootools/blob/17.0/repos/README.md

Step 4: If you want to add more than the standard themes please add them from here https://github.com/vertelab/odootools/blob/17.0/themes

The following packages have unmet dependencies:
wkhtmltox : Depends: libssl1.1 but it is not installable
22.04 har libssl 3.02 och är alltså ej bakåtkompatibelt med libssl 1.1

Solution:  "feisalramar" writes a 5-step guide at this URL: https://github.com/dotnet/sdk/issues/24759

Upgrade

If you are developing new features for odoo tools bash scripts and need to verify your changes or test them, please move them to the profile.d folder and verify their functionality.

cp odootools.sh /etc/profile.d/
cp odooscaffold.tar.gz /etc/odoo/

Then restart the bash instance, make sure your changes are working correctly, before pushing the changes.

To update odootools.sh directly from github run the command below.

sudo wget -O /etc/profile.d/odootools.sh https://raw.githubusercontent.com/vertelab/odootools/common/odootools.sh; . /etc/profile.d/odootools.sh

Uninstall

Use the command below to uninstall your Odoo installation.

this drops your databases and all your data related to Odoo

wget -O- https://raw.githubusercontent.com/vertelab/odootools/17.0/uninstall | bash

module 'lib' has no attribute 'OpenSSL_add_all_algorithms'

https://www.odoo.com/forum/help-1/attributeerror-module-lib-has-no-attribute-x509-v-flag-cb-issuer-check-when-creating-new-staging-branch-202955

go to terminal and:
pip uninstall pyopenssl
pip install pyopenssl==22.0.0
pip uninstall cryptography
pip install cryptography==37.0.0

Odoo-tools commands

Odoo-tools command Description
alldbs Lists all databases
allprojects Lists all projects
cdb change database
cdo Shortcut: /usr/share/core-odoo/addons$
cdp Shortcut: /usr/share$
enabledb / disabledb enabledb test_demo / disabledb test_demo : Change owner from odoo to postgres. Will be leftout in back-ups but still saved for future.
odooaddons [-v] Updates the addons_path with all project according to ODOOADDONS defined in odoo.tools. These are stored here: https://github.com/vertelab/odootools/tree/common/repos/
odooadminpw view master password
odooallrequirements Loop through all projects installing / updating requirements.txt
odoocheckmodule lists databases that use a module (eg odoocheckmodule sale)
checkmodule -d -m Creates the database (if missing) and installs/updates modules. Options: -D (no demo), -e (PO export), -L , -l <log_level>, -t (tests), --drop, --multi-user. Installed to /usr/local/bin (see Makefile).
odoocheckdeps Helper script that is primarally intended to find missing dependencies. Can easily be extended to also show dependencies/consequences
odoocreatetestdb Creates new database without e-mail-settings for outgoing mail
odoofind pattern find patterns in odoo-core source code
odoogitclone project clones and installs projects from githuh (vertel-projects)
odoogitpull does a git pull for every project in ODOOADDONS
odoolangexport export po/pot file for a module, -m -d -l . To export a pot-file exclude "-l"
odoomodules List all installed modules in a database
odooocagitpull Odoo OCA Git Pull, /usr/share/odooext-OCA-* git pull in this hierarchy
odoopsql Open database in psql-mode
odoopatch Implements patches from the directory /etc/odoo/patch.d
odoorestart Restarts odoo and apache/varnish or other systems that have to be restarted (configure in odoo.tools)
odoosetperm Sets permissions for all projects and modules
odoosvsyn -h host Syncs all /usr/share/odoo-//i18n/sv.po in Vertel projects and modules
odoosyncall -h host Syncs all projects and modules
odoosync -h host -p project Syncs a project to a server without git meta data
odooscaffold -p project -m modulename Creates a boilerplate for new modules to work from
odootail Views odoo-log live, you can use the one-liner odoorestart ; odootail to restart and monitor odoo
odooupd -h/--host, -P/--port, -d/--database, -m/--module, -p/--password, -l/--list, -i/--install, -u/--uninstall Modifies Odoo-instanses; -m/--module= comma separated module list, -i/--install install or upgrade modules -u, --uninstall uninstall modules, -c/--check coma separeted module list
odooupdm database modulelist Installs/updates modules in single user mode. For example: $ odooupdm customer_db1 base
odoovilog Opens Odoo log file in vi

/etc/odoo/odoo.tools

You can change the line

export ODOOHOSTS=""

to change the autocomplete for odootools commands that has a target host.

Type this command

user@odoo17server:~/odootools$ . odootools.sh

to load new or update current odootools commands to the Terminal.

About

Some tools for odoo cm and operations

Resources

Readme
Activity
Custom properties

Stars

23 stars

Watchers

17 watching

Forks

20 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.