Odoo18-Base/odoo-bin
KaySar12 5b2558767f
Some checks are pending
Setup Native Action / native (3.12.7) (push) Waiting to run
Setup Native Action / docker (3.12.7) (push) Waiting to run
update odoo-bin , add debug trigger
2025-05-15 14:11:42 +07:00

18 lines
438 B
Python
Executable File

#!/usr/bin/env python3
# set server timezone in UTC before time module imported
__import__('os').environ['TZ'] = 'UTC'
import os
# Conditionally enable remote debugging
if os.environ.get("ODOO_DEBUGPY", "0") == "1":
import debugpy
debugpy.listen(("0.0.0.0", 5678))
print("✅ Waiting for VS Code debugger to attach on port 5678...")
debugpy.wait_for_client()
import odoo
if __name__ == "__main__":
odoo.cli.main()