Update for Odoo 11

This commit is contained in:
Trinh Anh Ngoc
2021-08-30 22:01:51 +07:00
parent aa33e58a54
commit 3f752e9353
35 changed files with 259 additions and 444 deletions

View File

@@ -2,6 +2,7 @@ import psycopg2.extensions
from typing import Any, Optional
_logger: Any
types_mapping: Any
def unbuffer(symb: Any, cr: Any): ...
def undecimalize(symb: Any, cr: Any): ...
@@ -52,20 +53,16 @@ class Cursor:
@property
def closed(self): ...
class TestCursor:
_savepoint_seq: Any = ...
_closed: bool = ...
_cursor: Any = ...
_lock: Any = ...
_savepoint: Any = ...
def __init__(self, cursor: Any, lock: Any) -> None: ...
class TestCursor(Cursor):
_lock: Any
def __init__(self, *args, **kwargs) -> None: ...
def acquire(self) -> None: ...
def release(self) -> None: ...
def force_close(self) -> None: ...
def close(self) -> None: ...
def autocommit(self, on: Any) -> None: ...
def commit(self) -> None: ...
def rollback(self) -> None: ...
def __enter__(self): ...
def __exit__(self, exc_type: Any, exc_value: Any, traceback: Any) -> None: ...
def __getattr__(self, name: Any): ...
class LazyCursor:
_dbname: Any = ...
@@ -98,6 +95,7 @@ class Connection:
__pool: Any = ...
def __init__(self, pool: Any, dbname: Any, dsn: Any) -> None: ...
def cursor(self, serialized: bool = ...): ...
def test_cursor(self, serialized: bool = ...): ...
serialized_cursor: Any = ...
def __bool__(self) -> None: ...
__nonzero__: Any = ...