bemade-addons/bemade_sports_clinic/migrations/16.0.1.5.8/post-migrate.py

8 lines
246 B
Python
Raw Normal View History

from odoo import api, SUPERUSER_ID
def migrate(cr, version):
env = api.Environment(cr, SUPERUSER_ID, {})
env['sports.team'].search([])._allow_access_for_staff_internal_users()
cr.execute('CREATE EXTENSION IF NOT EXISTS "unaccent"')