[MIG] sql_request_abstract v10

This commit is contained in:
Darshan Patel
2017-09-04 16:52:28 +05:30
committed by chien
parent a9c7172f9d
commit bad0540b4e
7 changed files with 11 additions and 9 deletions

View File

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