project/upgrades/1.3/pre-migrate.py

15 lines
423 B
Python
Raw Normal View History

2024-04-12 12:07:51 +03:00
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
def migrate(cr, version):
cr.execute("""
UPDATE ir_model_access a
SET perm_read = true
FROM ir_model_data d
WHERE d.res_id = a.id
AND d.model = 'ir.model.access'
AND d.module = 'project'
AND d.name = 'access_project_milestone_portal'
""")