[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
|
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
|
||||||
:alt: Try me on Runbot
|
: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
|
Bug Tracker
|
||||||
===========
|
===========
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||||
|
|
||||||
from . import models
|
from . import models
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
'name': 'SQL Request Abstract',
|
'name': 'SQL Request Abstract',
|
||||||
'version': '9.0.1.0.0',
|
'version': '10.0.1.0.0',
|
||||||
'author': 'GRAP,Akretion,Odoo Community Association (OCA)',
|
'author': 'GRAP,Akretion,Odoo Community Association (OCA)',
|
||||||
'website': 'https://www.odoo-community.org',
|
'website': 'https://www.odoo-community.org',
|
||||||
'license': 'AGPL-3',
|
'license': 'AGPL-3',
|
|
@ -1,3 +1,4 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||||
|
|
||||||
from . import sql_request_mixin
|
from . import sql_request_mixin
|
||||||
|
|
|
@ -10,8 +10,8 @@ import StringIO
|
||||||
import base64
|
import base64
|
||||||
from psycopg2 import ProgrammingError
|
from psycopg2 import ProgrammingError
|
||||||
|
|
||||||
from openerp import _, api, fields, models
|
from odoo import _, api, fields, models
|
||||||
from openerp.exceptions import Warning as UserError
|
from odoo.exceptions import UserError
|
||||||
|
|
||||||
|
|
||||||
class SQLRequestMixin(models.AbstractModel):
|
class SQLRequestMixin(models.AbstractModel):
|
||||||
|
@ -129,7 +129,7 @@ class SQLRequestMixin(models.AbstractModel):
|
||||||
|
|
||||||
..note:: The following exceptions could be raised:
|
..note:: The following exceptions could be raised:
|
||||||
psycopg2.ProgrammingError: Error in the SQL Request.
|
psycopg2.ProgrammingError: Error in the SQL Request.
|
||||||
openerp.exceptions.Warning:
|
odoo.exceptions.UserError:
|
||||||
* 'mode' is not implemented.
|
* 'mode' is not implemented.
|
||||||
* materialized view is not supported by the Postgresql Server.
|
* materialized view is not supported by the Postgresql Server.
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
<openerp><data>
|
<odoo>
|
||||||
|
|
||||||
<record model="ir.module.category" id="category_sql_abstract">
|
<record model="ir.module.category" id="category_sql_abstract">
|
||||||
<field name="name">SQL Request</field>
|
<field name="name">SQL Request</field>
|
||||||
</record>
|
</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).
|
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">
|
<record model="res.groups" id="group_sql_request_user">
|
||||||
<field name="name">User</field>
|
<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'))]" />
|
<field name="implied_ids" eval="[(4, ref('group_sql_request_user'))]" />
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
</data></openerp>
|
</odoo>
|
||||||
|
|
Loading…
Reference in New Issue