diff --git a/odoo-stubs/http.pyi b/odoo-stubs/http.pyi index f95ac7d..d8cce96 100644 --- a/odoo-stubs/http.pyi +++ b/odoo-stubs/http.pyi @@ -40,12 +40,14 @@ SESSION_LIFETIME: int STATIC_CACHE: int STATIC_CACHE_LONG: int +class RegistryError(RuntimeError): ... class SessionExpiredException(Exception): ... def content_disposition(filename: str) -> str: ... def db_list(force: bool = ..., host: str | None = ...) -> list[str]: ... def db_filter(dbs: Iterable[str], host: str | None = ...) -> list[str]: ... def dispatch_rpc(service_name: str, method: str, params: Mapping): ... +def get_session_max_inactivity(env: Environment) -> int: ... def is_cors_preflight(request: Request, endpoint) -> bool: ... def serialize_exception(exception: Exception): ... def send_file( @@ -283,6 +285,7 @@ class Request: def render( self, template: str, qcontext: dict | None = ..., lazy: bool = ..., **kw ): ... + def reroute(self, path, query_string: str | None = ...) -> None: ... class Dispatcher(ABC): routing_type: str diff --git a/odoo-stubs/modules/registry.pyi b/odoo-stubs/modules/registry.pyi index 99f8771..cade2ec 100644 --- a/odoo-stubs/modules/registry.pyi +++ b/odoo-stubs/modules/registry.pyi @@ -36,6 +36,7 @@ class Registry(Mapping[str, type[BaseModel]]): has_unaccent: bool has_trigram: bool unaccent: Callable[[Any], str] + unaccent_python: Callable[[Any], str] def init(self, db_name: str) -> None: ... @classmethod def delete(cls, db_name: str) -> None: ...