From a4f78f3de6813bf139761611eb229d558321051f Mon Sep 17 00:00:00 2001 From: Christopher Ormaza Date: Mon, 6 Jan 2025 16:50:17 -0500 Subject: [PATCH] [MIG] bi_view_editor: Migration to 18.0 --- bi_view_editor/__manifest__.py | 3 +- bi_view_editor/models/bve_view.py | 42 +++++++++---------- bi_view_editor/models/bve_view_line.py | 4 +- .../bi_view_editor/bi_view_editor.esm.js | 27 +++++++----- bi_view_editor/tests/test_bi_view.py | 2 +- bi_view_editor/views/bve_view.xml | 18 ++++---- 6 files changed, 49 insertions(+), 47 deletions(-) diff --git a/bi_view_editor/__manifest__.py b/bi_view_editor/__manifest__.py index a20cc978b7..7aa7206e7e 100644 --- a/bi_view_editor/__manifest__.py +++ b/bi_view_editor/__manifest__.py @@ -9,9 +9,10 @@ "license": "AGPL-3", "website": "https://github.com/OCA/reporting-engine", "category": "Productivity", - "version": "16.0.1.1.0", + "version": "18.0.1.1.0", "development_status": "Beta", "depends": [ + "spreadsheet_dashboard", "web", ], "external_dependencies": { diff --git a/bi_view_editor/models/bve_view.py b/bi_view_editor/models/bve_view.py index b6a12faf84..60b15d35ba 100644 --- a/bi_view_editor/models/bve_view.py +++ b/bi_view_editor/models/bve_view.py @@ -190,7 +190,7 @@ def _get_field_attrs(line): res = attr and f'{attr}="{line.description}"' or "" return f'' - bve_field_lines = self.field_ids.filtered(lambda l: l.in_list) + bve_field_lines = self.field_ids.filtered(lambda line: line.in_list) return list(map(_get_field_attrs, bve_field_lines.sorted("sequence"))) def _create_bve_view(self): @@ -244,18 +244,16 @@ def _create_bve_view(self): tree_view = View.create( { "name": "Tree Analysis", - "type": "tree", + "type": "list", "model": self.model_name, "priority": 16, - "arch": """ - - {} - + "arch": """ list + {} Custom BI Views bve.view - tree,form + list,form

Click to create a Custom Query Object. @@ -20,7 +20,7 @@ --> @@ -28,15 +28,15 @@ bve.view - + - + @@ -114,7 +114,7 @@ nolabel="1" attrs="{'readonly': [('state','=','created')]}" > - - + - + @@ -157,7 +157,7 @@ - +