[MIG] sql_request_abstract v10
parent
a80f773543
commit
1a98a56c9c
|
@ -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
|
||||
===========
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
from . import models
|
||||
|
|
|
@ -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',
|
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
"""
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<openerp><data>
|
||||
<odoo>
|
||||
|
||||
<record model="ir.module.category" id="category_sql_abstract">
|
||||
<field name="name">SQL Request</field>
|
||||
</record>
|
||||
|
||||
</data></openerp>
|
||||
</odoo>
|
||||
|
|
|
@ -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).
|
||||
-->
|
||||
|
||||
<openerp><data>
|
||||
<odoo>
|
||||
|
||||
<record model="res.groups" id="group_sql_request_user">
|
||||
<field name="name">User</field>
|
||||
|
@ -20,4 +20,4 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
|||
<field name="implied_ids" eval="[(4, ref('group_sql_request_user'))]" />
|
||||
</record>
|
||||
|
||||
</data></openerp>
|
||||
</odoo>
|
||||
|
|
Loading…
Reference in New Issue