mirror of
https://github.com/bringout/oca-report.git
synced 2026-04-19 11:42:05 +02:00
update all kept modules to OCA 19.0 versions
bi_sql_editor 19.0.1.0.1, report_csv 19.0.1.0.0,
report_qweb_element_page_visibility 19.0.1.0.0,
report_xlsx_helper 19.0.1.0.0, report_xml 19.0.1.0.0,
sql_request_abstract 19.0.1.0.0
🤖 assisted by claude
This commit is contained in:
parent
05df50b41d
commit
c18e7fd4c7
258 changed files with 8677 additions and 6341 deletions
|
|
@ -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
|
||||
]
|
||||
|
|
@ -32,7 +27,7 @@ def post_init_hook(cr, registry):
|
|||
xsd_file_relative_path = "demo/demo_report.xsd"
|
||||
xsd_file_full_path = os.path.join(dir_path, xsd_file_relative_path)
|
||||
|
||||
with open(xsd_file_full_path, "r") as xsd:
|
||||
with open(xsd_file_full_path) as xsd:
|
||||
# `xsd_schema` is binary fields with an attribute
|
||||
# `attachment=True` so XSD Schema will be added as attachment
|
||||
attach_vals = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue