From 24ae610f8cf257198cdae4b6cad4a95c93ff3a7d Mon Sep 17 00:00:00 2001 From: David James Date: Tue, 8 Jun 2021 13:01:42 +1000 Subject: [PATCH] bi_sql_editor: Migration to 14.0 --- bi_sql_editor/__manifest__.py | 2 +- bi_sql_editor/models/bi_sql_view.py | 3 ++- bi_sql_editor/tests/test_bi_sql_view.py | 6 +++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/bi_sql_editor/__manifest__.py b/bi_sql_editor/__manifest__.py index f6ea7de6b..3a909ba72 100644 --- a/bi_sql_editor/__manifest__.py +++ b/bi_sql_editor/__manifest__.py @@ -5,7 +5,7 @@ { "name": "BI SQL Editor", "summary": "BI Views builder, based on Materialized or Normal SQL Views", - "version": "13.0.1.0.1", + "version": "14.0.1.0.0", "license": "AGPL-3", "category": "Reporting", "author": "GRAP,Odoo Community Association (OCA)", diff --git a/bi_sql_editor/models/bi_sql_view.py b/bi_sql_editor/models/bi_sql_view.py index 2842ac93f..3adec90e5 100644 --- a/bi_sql_editor/models/bi_sql_view.py +++ b/bi_sql_editor/models/bi_sql_view.py @@ -9,7 +9,8 @@ from psycopg2 import ProgrammingError from odoo import SUPERUSER_ID, _, api, fields, models from odoo.exceptions import UserError -from odoo.tools import pycompat, safe_eval, sql +from odoo.tools import pycompat, sql +from odoo.tools.safe_eval import safe_eval from odoo.addons.base.models.ir_model import IrModel diff --git a/bi_sql_editor/tests/test_bi_sql_view.py b/bi_sql_editor/tests/test_bi_sql_view.py index d3ab26a66..02622d331 100644 --- a/bi_sql_editor/tests/test_bi_sql_view.py +++ b/bi_sql_editor/tests/test_bi_sql_view.py @@ -2,11 +2,11 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from odoo.exceptions import AccessError, UserError -from odoo.tests.common import SingleTransactionCase, at_install, post_install +from odoo.tests import tagged +from odoo.tests.common import SingleTransactionCase -@at_install(False) -@post_install(True) +@tagged("-at_install", "post_install") class TestBiSqlViewEditor(SingleTransactionCase): @classmethod def setUpClass(cls):