2020-05-26 11:45:11 +02:00
2020-05-26 11:45:11 +02:00
2020-05-25 15:57:24 +02:00
2020-05-25 15:59:48 +02:00
2020-05-25 15:57:24 +02:00
2020-05-04 23:34:19 +02:00
2020-05-25 15:57:24 +02:00

Odoo Development

Setup Odoo development environment with Docker Compose.

Usage

Clone this repository.

git clone https://github.com/Mint-System/Odoo-Development.git odoo-development
cd odoo-development

Run docker compose.

docker-compose up -d

Initialize database and install modules.

./docker-install-odoo

Open browser to http://localhost:8069 and login with admin:admin.

Enable developer mode

Navigate to the settings page and click on Activate the developer mode (with assets).

Create new module

Scaffold a new module.

docker exec -it odoo bin/bash -c 'odoo scaffold qm_data_system /mnt/extra-addons'

Restart Odoo.

docker restart odoo

Manage database

Open database manager http://localhost:8000/ and login with admin:admin.

Add a new database connection with these credentials:

Name: odoo
Host: db
Username: odoo
Password: odoo

Uninstall

Kill docker containers.

docker-compose down -v

Install custom module

./docker-odoo-install -m show_db_name

Create new db

docker exec -it odoo bin/bash
createdb -h $HOST -U $USER mint-system --locale=de_CH.utf8 --template=template0
# Enter password
psql -h $HOST -U $USER -l
# Enter password
odoo -i base,web -c /etc/odoo/odoo.conf -d mint-system --db_host $HOST -r $USER -w $PASSWORD --without-demo=all --stop-after-init
# Exit
docker restart odoo

Open http://localhost:8069/?db=Test in your browser.

Delete db

docker exec -it odoo bin/bash
psql -h $HOST -U $USER -l
# Enter password
dropdb -h $HOST -U $USER mint-system
# Enter password

Save config

docker exec -it odoo bin/bash -c "odoo -s -d Test --db_host \$HOST -r \$USER -w \$PASSWORD"
S
Description
No description provided
Readme AGPL-3.0
13 MiB
0 Stars 3 Watchers 0 Forks
Languages
Shell 48.7%
Python 40.4%
JavaScript 7.6%
Dockerfile 2.8%
HTML 0.3%
Other 0.2%