mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
[IMP] bi_sql_editor: allow to generate form view. So It is possible to see data detail, when clicking on an item in a tree view
- update / create tree and form view once all the models are loaded, to avoid errors because fields are not available
This commit is contained in:
11
bi_sql_editor/migrations/17.0.2.0.0/end-migration.py
Normal file
11
bi_sql_editor/migrations/17.0.2.0.0/end-migration.py
Normal file
@@ -0,0 +1,11 @@
|
||||
# Copyright (C) 2024 - Today: GRAP (http://www.grap.coop)
|
||||
# @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
from openupgradelib import openupgrade
|
||||
|
||||
|
||||
@openupgrade.migrate()
|
||||
def migrate(env, version):
|
||||
for view in env["bi.sql.view"].search([("state", "=", "ui_valid")]):
|
||||
view.form_view_id = env["ir.ui.view"].create(view._prepare_form_view()).id
|
||||
Reference in New Issue
Block a user