Skip to content

Commit 4c5f1b1

Browse files
authored
Merge pull request #7 from trobz/fix/update-click-odoo-update
fix: activate venv for click-odoo-update
2 parents 73f75d9 + fb1b775 commit 4c5f1b1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

deploy/command/update.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def run_hooks(hook_name: str) -> bool:
151151
if eff_type == "odoo":
152152
addons_path = get_addons_path(executor, instance_path)
153153
executor.run(
154-
f"click-odoo-update -d {eff_db} --addons-path={addons_path}",
154+
f"source .venv/bin/activate && click-odoo-update -d {eff_db} --addons-path={addons_path}",
155155
cwd=instance_path,
156156
)
157157
executor.run(f"systemctl --user restart {instance_name}")

0 commit comments

Comments
 (0)