bemade-addons/openwebui_integration/hooks.py
2025-02-18 14:55:35 -05:00

9 lines
No EOL
289 B
Python

# -*- coding: utf-8 -*-
def post_init_hook(cr, registry):
"""Post-init hook for initializing new columns."""
# Initialize ollama_port with default value
cr.execute("""
ALTER TABLE res_company
ADD COLUMN IF NOT EXISTS ollama_port integer DEFAULT 11434;
""")