[MIG] report_xml: Migration to 17.0

This commit is contained in:
Viktor Anikeenko
2023-12-07 16:11:11 +02:00
committed by Atte Isopuro
parent 6dd4fd321a
commit cefc885e07
4 changed files with 9 additions and 18 deletions

View File

@@ -2,10 +2,8 @@
import os
from odoo import SUPERUSER_ID, api
def post_init_hook(cr, registry):
def post_init_hook(env):
"""
Loaded after installing this module, and before the next module starts
installing.
@@ -18,11 +16,8 @@ def post_init_hook(cr, registry):
to `xsd_schema` field for demo record only via hook.
Args:
* cr(odoo.sql_db.Cursor) - database cursor.
* registry(odoo.modules.registry.RegistryManager) - a mapping between
model names and model classes.
* env(odoo.api.Environment) - provides access to the models
"""
env = api.Environment(cr, SUPERUSER_ID, {})
report_domain = [
("report_name", "=", "report_xml.demo_report_xml_view") # report tech name
]