docker-odoo/16.0/extra-addons/openems/migrations/16.0.1.0.1/pre-migrate.py
Arila Barnes 5594ca8d5d Added support for OpenEMS Odoo Add-ons
Signed-off-by: Arila Barnes <axmsoftware@Arilas-MacBook-Air-2.local>
2024-07-30 09:30:39 -07:00

8 lines
268 B
Python

def migrate(cr, version):
cr.execute("""
SELECT device_id, user_id, time_to_wait, last_notification
INTO openems_alerting_migrate
FROM openems_device_user_role
WHERE time_to_wait > 0;
""")