From 88e833e4a894756925bb6d313fe1fb63420e7f64 Mon Sep 17 00:00:00 2001 From: Trinh Anh Ngoc Date: Tue, 9 Nov 2021 10:18:30 +0700 Subject: [PATCH] Update stubs --- 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 e3474ed..c4dab25 100644 --- a/odoo-stubs/models.pyi +++ b/odoo-stubs/models.pyi @@ -1,6 +1,6 @@ from collections.abc import MutableMapping from psycopg2.extensions import AsIs as AsIs -from typing import Any, Generator +from typing import Any, Generator, List from odoo import api, fields from odoo.api import Environment @@ -86,6 +86,8 @@ class BaseModel(metaclass=MetaModel): _transient_max_count: Any _transient_max_hours: Any _fields: dict[str, fields.Field] + _ids: List[int] + _prefetch_ids: List[int] env: Environment = ... pool: Registry id = fields.Id()