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). - +