Skip to content

Commit a5a5b9d

Browse files
committed
fix(odoo): add enterprise path to addons path configuration
1 parent 69f31d8 commit a5a5b9d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

images/odoo/bin/set-addons-path

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ if [[ -d '/var/lib/odoo/git' ]]; then
1515
odoo_addons_path="/var/lib/odoo/git,$odoo_addons_path"
1616
fi
1717

18+
# Add enterprise path to addons path
19+
odoo_enterprise_path=${ODOO_ENTERPRISE_PATH:="/var/lib/odoo/enterprise"}
20+
if [[ -d "$odoo_enterprise_path" ]]; then
21+
log-entrypoint "Prepend $odoo_enterprise_path to addons path."
22+
odoo_addons_path=$(echo "${odoo_enterprise_path},${odoo_addons_path}")
23+
fi
24+
1825
# Add test addons dir to addons path
1926
if [[ -n "$TEST_ADDONS_DIR" ]]; then
2027
log-entrypoint "Append $TEST_ADDONS_DIR to addons path."

0 commit comments

Comments
 (0)