Browse Source

[MIG] sql_request_abstract v10

pull/1459/head
Darshan Patel 7 years ago
committed by Adrià Gil Sorribes
parent
commit
38647a4bff
  1. 2
      sql_request_abstract/README.rst
  2. 1
      sql_request_abstract/__init__.py
  3. 2
      sql_request_abstract/__manifest__.py
  4. 1
      sql_request_abstract/models/__init__.py
  5. 6
      sql_request_abstract/models/sql_request_mixin.py
  6. 4
      sql_request_abstract/security/ir_module_category.xml
  7. 4
      sql_request_abstract/security/res_groups.xml

2
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
===========

1
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

2
sql_request_abstract/__openerp__.py → 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',

1
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

6
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.
"""

4
sql_request_abstract/security/ir_module_category.xml

@ -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>

4
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).
-->
<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…
Cancel
Save