Skip to content

Commit

Permalink
fix bin/ utilities
Browse files Browse the repository at this point in the history
local-src is no longer used -> things are now in /odoo/odoo/addons
  • Loading branch information
gurneyalex committed Jan 4, 2024
1 parent cef3da3 commit 667e832
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bin/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export PGAPPNAME=${HOSTNAME}

# As docker-compose exec do not launch the entrypoint
# init PG variable into .bashrc so it will be initialized
# when doing docker-compose exec odoo gosu odoo bash
# when doing docker-compose exec odoo odoo bash
echo "
export PGHOST=${DB_HOST}
export PGPORT=${DB_PORT}
Expand Down
2 changes: 1 addition & 1 deletion bin/list_dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import os
import ast

LOCAL_SRC_DIR = os.path.join("/odoo", "local-src")
LOCAL_SRC_DIR = os.path.join("/odoo", "odoo", "addons")

dependencies = set()
local_modules = os.listdir(LOCAL_SRC_DIR)
Expand Down
4 changes: 2 additions & 2 deletions bin/runtests
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ set -e

wait_postgres.sh

LOCAL_SRC_DIR=/odoo/local-src
LOCAL_SRC_DIR=/odoo/odoo/addons
CACHE_DIR=${CACHE_DIR:=/tmp/cachedb}

if [ -z $1 ]; then
Expand Down Expand Up @@ -73,7 +73,7 @@ else
pg_dump -Fp -d $DB_NAME_TEST -O -f "$CACHED_DUMP"
fi
fi
echo "πŸ”§πŸ”§ Install local-src modules πŸ”§πŸ”§"
echo "πŸ”§πŸ”§ Install odoo/addons modules πŸ”§πŸ”§"
odoo --stop-after-init --workers=0 --database $DB_NAME_TEST --test-enable --log-level=test --log-handler=":INFO" --without-demo="" --db-filter=$DB_NAME_TEST -i ${LOCAL_ADDONS}

dropdb ${DB_NAME_TEST}
2 changes: 1 addition & 1 deletion bin/testdb-gen
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ fi

echo "creating database ${DB_NAME}"
createdb -h ${DB_HOST} -O ${DB_USER} ${DB_NAME}
gosu odoo odoo --stop-after-init --workers=0 --log-level=warn --without-demo="" "$@"
odoo --stop-after-init --workers=0 --log-level=warn --without-demo="" "$@"
echo "done"
2 changes: 1 addition & 1 deletion bin/testdb-update
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ if ! psql -lqtA -h ${DB_HOST} | grep -q "^$DB_NAME|"; then
fi

echo "updating database ${DB_NAME}"
gosu odoo odoo --stop-after-init --workers=0 --log-level=warn --without-demo="" "$@"
odoo --stop-after-init --workers=0 --log-level=warn --without-demo="" "$@"
echo "done"

0 comments on commit 667e832

Please sign in to comment.