From ebd77c9399761aee2bd1adea942305d8bf9adb1f 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 +++--- oca_dependencies.txt | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/bi_sql_editor/__manifest__.py b/bi_sql_editor/__manifest__.py index f6ea7de6..3a909ba7 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 2842ac93..3adec90e 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 d3ab26a6..02622d33 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): diff --git a/oca_dependencies.txt b/oca_dependencies.txt index ca3c726b..9c8c9172 100644 --- a/oca_dependencies.txt +++ b/oca_dependencies.txt @@ -1 +1 @@ -# See https://github.com/OCA/odoo-community.org/blob/master/website/Contribution/CONTRIBUTING.rst#oca_dependencies-txt +server-tools