From bc4fcba81cd669f1dade7effcd76d83fd1c5f205 Mon Sep 17 00:00:00 2001 From: Trinh Anh Ngoc Date: Wed, 26 Apr 2023 13:37:25 +0700 Subject: [PATCH] Update stubs Fix https://github.com/odoo-ide/odoo-stubs/issues/13 --- odoo-stubs/models.pyi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/odoo-stubs/models.pyi b/odoo-stubs/models.pyi index 82f13ca..83bd88e 100644 --- a/odoo-stubs/models.pyi +++ b/odoo-stubs/models.pyi @@ -1,5 +1,5 @@ from collections import MutableMapping -from typing import Any, Generator, List, TypeVar +from typing import Any, Dict, Generator, List, TypeVar from . import api, fields from .api import Environment @@ -74,6 +74,8 @@ class BaseModel: _transient_check_count: int _transient_max_count: Any _transient_max_hours: Any + _fields: Dict[str, fields.Field] + _ids: tuple env: Environment = ... pool: Registry id = fields.Id()