Update stubs

This commit is contained in:
Trinh Anh Ngoc
2023-06-15 21:31:21 +07:00
parent aee9eca6f7
commit 0a81ea1491
3 changed files with 5 additions and 0 deletions

View File

@@ -457,6 +457,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 = ...
): ...

View File

@@ -285,6 +285,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: ...

View File

@@ -1,6 +1,8 @@
from types import ModuleType
from typing import Any, Literal, MutableSequence
from odoo.addons.base.models.ir_module import Module
from ..tools import pycompat as pycompat
MANIFEST_NAMES: tuple[str, ...]
@@ -34,6 +36,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]: ...