From 5775974180b5d4d2dac1f572f06e22c8e6869ccf Mon Sep 17 00:00:00 2001 From: Darshan Patel Date: Mon, 4 Sep 2017 16:52:28 +0530 Subject: [PATCH] [MIG] sql_request_abstract v10 --- sql_request_abstract/README.rst | 2 +- sql_request_abstract/__init__.py | 1 + sql_request_abstract/{__openerp__.py => __manifest__.py} | 2 +- sql_request_abstract/models/__init__.py | 1 + sql_request_abstract/models/sql_request_mixin.py | 6 +++--- sql_request_abstract/security/ir_module_category.xml | 4 ++-- sql_request_abstract/security/res_groups.xml | 4 ++-- 7 files changed, 11 insertions(+), 9 deletions(-) rename sql_request_abstract/{__openerp__.py => __manifest__.py} (95%) diff --git a/sql_request_abstract/README.rst b/sql_request_abstract/README.rst index 3e6fbedf9..d3b86b9a9 100644 --- a/sql_request_abstract/README.rst +++ b/sql_request_abstract/README.rst @@ -45,7 +45,7 @@ Inherit the model: .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas :alt: Try me on Runbot - :target: https://runbot.odoo-community.org/runbot/149/9.0 + :target: https://runbot.odoo-community.org/runbot/149/10.0 Bug Tracker =========== diff --git a/sql_request_abstract/__init__.py b/sql_request_abstract/__init__.py index cde864bae..a77a6fcbc 100644 --- a/sql_request_abstract/__init__.py +++ b/sql_request_abstract/__init__.py @@ -1,3 +1,4 @@ # -*- coding: utf-8 -*- +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from . import models diff --git a/sql_request_abstract/__openerp__.py b/sql_request_abstract/__manifest__.py similarity index 95% rename from sql_request_abstract/__openerp__.py rename to sql_request_abstract/__manifest__.py index f8066ec8a..0cb8c4c92 100644 --- a/sql_request_abstract/__openerp__.py +++ b/sql_request_abstract/__manifest__.py @@ -5,7 +5,7 @@ { 'name': 'SQL Request Abstract', - 'version': '9.0.1.0.0', + 'version': '10.0.1.0.0', 'author': 'GRAP,Akretion,Odoo Community Association (OCA)', 'website': 'https://www.odoo-community.org', 'license': 'AGPL-3', diff --git a/sql_request_abstract/models/__init__.py b/sql_request_abstract/models/__init__.py index 72dc9ae94..40603335c 100644 --- a/sql_request_abstract/models/__init__.py +++ b/sql_request_abstract/models/__init__.py @@ -1,3 +1,4 @@ # -*- coding: utf-8 -*- +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from . import sql_request_mixin diff --git a/sql_request_abstract/models/sql_request_mixin.py b/sql_request_abstract/models/sql_request_mixin.py index d7df1f85c..e55a1e627 100644 --- a/sql_request_abstract/models/sql_request_mixin.py +++ b/sql_request_abstract/models/sql_request_mixin.py @@ -10,8 +10,8 @@ import StringIO import base64 from psycopg2 import ProgrammingError -from openerp import _, api, fields, models -from openerp.exceptions import Warning as UserError +from odoo import _, api, fields, models +from odoo.exceptions import UserError class SQLRequestMixin(models.AbstractModel): @@ -129,7 +129,7 @@ class SQLRequestMixin(models.AbstractModel): ..note:: The following exceptions could be raised: psycopg2.ProgrammingError: Error in the SQL Request. - openerp.exceptions.Warning: + odoo.exceptions.UserError: * 'mode' is not implemented. * materialized view is not supported by the Postgresql Server. """ diff --git a/sql_request_abstract/security/ir_module_category.xml b/sql_request_abstract/security/ir_module_category.xml index 0928edeeb..d9ba6635f 100644 --- a/sql_request_abstract/security/ir_module_category.xml +++ b/sql_request_abstract/security/ir_module_category.xml @@ -1,9 +1,9 @@ - + SQL Request - + diff --git a/sql_request_abstract/security/res_groups.xml b/sql_request_abstract/security/res_groups.xml index 893449251..70387ca26 100644 --- a/sql_request_abstract/security/res_groups.xml +++ b/sql_request_abstract/security/res_groups.xml @@ -5,7 +5,7 @@ Copyright (C) 2017 - Today: GRAP (http://www.grap.coop) License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). --> - + User @@ -20,4 +20,4 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). - +