[OU-FIX] document_page_access_group: use env in openupgrade load_data instead of cr

As stated in https://github.com/OCA/openupgradelib/blob/master/openupgradelib/openupgrade.py#L297, the param should `env`, instead of the cursor
This commit is contained in:
Víctor Martínez 2024-11-11 14:15:34 +01:00 committed by Bhavesh Heliconia
parent 6fad9dc8e6
commit f37e9e1720

View File

@ -6,7 +6,7 @@ from openupgradelib import openupgrade
@openupgrade.migrate() @openupgrade.migrate()
def migrate(env, version): def migrate(env, version):
openupgrade.load_data( openupgrade.load_data(
env.cr, env,
"document_page_access_group", "document_page_access_group",
"migrations/17.0.1.1.0/noupdate_changes.xml", "migrations/17.0.1.1.0/noupdate_changes.xml",
) )