From 9c0e59d8f836e219108688e583ea72dd10e6b239 Mon Sep 17 00:00:00 2001 From: Trinh Anh Ngoc Date: Thu, 15 Jun 2023 21:22:37 +0700 Subject: [PATCH] Update stubs --- odoo-stubs/fields.pyi | 1 + odoo-stubs/http.pyi | 1 + odoo-stubs/modules/module.pyi | 3 +++ 3 files changed, 5 insertions(+) diff --git a/odoo-stubs/fields.pyi b/odoo-stubs/fields.pyi index aa30026..7878ee3 100644 --- a/odoo-stubs/fields.pyi +++ b/odoo-stubs/fields.pyi @@ -461,6 +461,7 @@ class PropertiesDefinition(Field): prefetch: bool REQUIRED_KEYS: tuple[str, ...] ALLOWED_KEYS: tuple[str, ...] + PROPERTY_PARAMETERS_MAP: dict[str, set[str]] def convert_to_column( self, value, record: BaseModel, values: Any | None = ..., validate: bool = ... ): ... diff --git a/odoo-stubs/http.pyi b/odoo-stubs/http.pyi index 81a4ca8..22d7e65 100644 --- a/odoo-stubs/http.pyi +++ b/odoo-stubs/http.pyi @@ -298,6 +298,7 @@ class HttpDispatcher(Dispatcher): class JsonRPCDispatcher(Dispatcher): routing_type: str jsonrequest: dict + request_id: object def __init__(self, request: Request) -> None: ... @classmethod def is_compatible_with(cls, request: Request) -> bool: ... diff --git a/odoo-stubs/modules/module.pyi b/odoo-stubs/modules/module.pyi index ec42f70..8a1c40d 100644 --- a/odoo-stubs/modules/module.pyi +++ b/odoo-stubs/modules/module.pyi @@ -1,6 +1,8 @@ from types import ModuleType from typing import Any, Literal +from odoo.addons.base.models.ir_module import Module + from ..tools import pycompat as pycompat MANIFEST_NAMES: tuple[str, ...] @@ -22,6 +24,7 @@ get_module_resource = get_resource_path def get_resource_from_path(path: str) -> tuple[str, str, str] | None: ... def get_module_icon(module: str) -> str: ... +def get_module_icon_path(module: Module) -> str: ... def module_manifest(path: str) -> str | None: ... def get_module_root(path: str) -> str | None: ... def load_manifest(module: str, mod_path: str | None = ...) -> dict[str, Any]: ...