odex25_standard/odex25_helpdesk/odex25_helpdesk/migrations/10.0.1.2/pre-nonulls.py

10 lines
274 B
Python

# -*- coding: utf-8 -*-
def migrate(cr, version):
cr.execute("""
UPDATE odex25_helpdesk_sla
SET time_days = COALESCE(time_days, 0),
time_hours = COALESCE(time_hours, 0),
time_minutes = COALESCE(time_minutes, 0)
""")