bemade-addons/openwebui_integration/hooks.py

9 lines
289 B
Python
Raw Normal View History

2025-02-18 14:55:35 -05:00
# -*- 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;
""")