From cd75dfed3d7ba2962d2b596171f6bcd31051bafd Mon Sep 17 00:00:00 2001 From: Trinh Anh Ngoc Date: Wed, 27 Oct 2021 17:21:48 +0700 Subject: [PATCH] Update stubs for api.Environment Fix #7 --- odoo-stubs/api.pyi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/odoo-stubs/api.pyi b/odoo-stubs/api.pyi index a70ada3..54a6672 100644 --- a/odoo-stubs/api.pyi +++ b/odoo-stubs/api.pyi @@ -1,6 +1,8 @@ from collections import Mapping from typing import Any +from odoo.sql_db import Cursor + __all__: Any _logger: Any WRAPPED_ATTRS: Any @@ -50,6 +52,9 @@ def call_kw(model, name, args, kwargs): ... class Environment(Mapping): _local: Any + cr: Cursor = ... + uid: int = ... + context: dict = ... @classmethod @property def envs(cls) -> Environments: ...