mirror of
https://github.com/odoo-ide/odoo-stubs.git
synced 2025-05-08 16:52:26 +03:00
Update stubs
This commit is contained in:
@@ -80,6 +80,7 @@ class Field(metaclass=MetaField):
|
|||||||
group_expand: str | None
|
group_expand: str | None
|
||||||
prefetch: bool
|
prefetch: bool
|
||||||
default_export_compatible: bool
|
default_export_compatible: bool
|
||||||
|
exportable: bool
|
||||||
related_attrs: list[tuple[str, str]]
|
related_attrs: list[tuple[str, str]]
|
||||||
description_attrs: list[tuple[str, str]]
|
description_attrs: list[tuple[str, str]]
|
||||||
def __init__(self, string: str = ..., **kwargs) -> None: ...
|
def __init__(self, string: str = ..., **kwargs) -> None: ...
|
||||||
@@ -127,6 +128,7 @@ class Field(metaclass=MetaField):
|
|||||||
_description_change_default: bool
|
_description_change_default: bool
|
||||||
_description_group_operator: str | None
|
_description_group_operator: str | None
|
||||||
_description_default_export_compatible: bool
|
_description_default_export_compatible: bool
|
||||||
|
_description_exportable: bool
|
||||||
def _description_depends(self, env: Environment): ...
|
def _description_depends(self, env: Environment): ...
|
||||||
@property
|
@property
|
||||||
def _description_searchable(self) -> bool: ...
|
def _description_searchable(self) -> bool: ...
|
||||||
@@ -445,6 +447,7 @@ class Json(Field):
|
|||||||
def convert_to_record(self, value, record: BaseModel): ...
|
def convert_to_record(self, value, record: BaseModel): ...
|
||||||
def convert_to_cache(self, value, record: BaseModel, validate: bool = ...): ...
|
def convert_to_cache(self, value, record: BaseModel, validate: bool = ...): ...
|
||||||
def convert_to_column(self, value, record: BaseModel, values: Any | None = ..., validate: bool = ...): ...
|
def convert_to_column(self, value, record: BaseModel, values: Any | None = ..., validate: bool = ...): ...
|
||||||
|
def convert_to_export(self, value, record: BaseModel): ...
|
||||||
|
|
||||||
class Properties(Field):
|
class Properties(Field):
|
||||||
type: str
|
type: str
|
||||||
|
|||||||
@@ -42,6 +42,7 @@ class SessionExpiredException(Exception): ...
|
|||||||
def content_disposition(filename: str) -> str: ...
|
def content_disposition(filename: str) -> str: ...
|
||||||
def db_list(force: bool = ..., host: str | None = ...) -> list[str]: ...
|
def db_list(force: bool = ..., host: str | None = ...) -> list[str]: ...
|
||||||
def db_filter(dbs: Iterable[str], 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 is_cors_preflight(request: Request, endpoint) -> bool: ...
|
def is_cors_preflight(request: Request, endpoint) -> bool: ...
|
||||||
def serialize_exception(exception: Exception): ...
|
def serialize_exception(exception: Exception): ...
|
||||||
def send_file(filepath_or_fp, mimetype: str | None = ..., as_attachment: bool = ..., filename: str | None = ...,
|
def send_file(filepath_or_fp, mimetype: str | None = ..., as_attachment: bool = ..., filename: str | None = ...,
|
||||||
@@ -109,6 +110,7 @@ class Session(MutableMapping):
|
|||||||
def __iter__(self) -> Iterable[str]: ...
|
def __iter__(self) -> Iterable[str]: ...
|
||||||
def __getattr__(self, attr: str): ...
|
def __getattr__(self, attr: str): ...
|
||||||
def __setattr__(self, key: str, val) -> None: ...
|
def __setattr__(self, key: str, val) -> None: ...
|
||||||
|
def clear(self) -> None: ...
|
||||||
uid: int | None
|
uid: int | None
|
||||||
pre_login: str | None
|
pre_login: str | None
|
||||||
pre_uid: int
|
pre_uid: int
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
from typing import Any, Callable
|
from . import (
|
||||||
|
common as common,
|
||||||
from . import server as server
|
db as db,
|
||||||
|
model as model,
|
||||||
_dispatchers: dict[str, Callable[[str, Any], Any]]
|
server as server
|
||||||
|
)
|
||||||
def dispatch_rpc(service_name: str, method: str, params): ...
|
|
||||||
|
|||||||
@@ -14,6 +14,8 @@ from ..fields import Field
|
|||||||
from ..models import BaseModel
|
from ..models import BaseModel
|
||||||
from ..sql_db import Connection, Cursor
|
from ..sql_db import Connection, Cursor
|
||||||
|
|
||||||
|
PYTHON_TRANSLATION_COMMENT: str
|
||||||
|
JAVASCRIPT_TRANSLATION_COMMENT: str
|
||||||
WEB_TRANSLATION_COMMENT: str
|
WEB_TRANSLATION_COMMENT: str
|
||||||
SKIPPED_ELEMENTS: tuple[str, ...]
|
SKIPPED_ELEMENTS: tuple[str, ...]
|
||||||
_LOCALE2WIN32: dict[str, str]
|
_LOCALE2WIN32: dict[str, str]
|
||||||
@@ -150,11 +152,14 @@ class CodeTranslations:
|
|||||||
python_translations: dict[tuple[str, str], dict]
|
python_translations: dict[tuple[str, str], dict]
|
||||||
web_translations: dict[tuple[str, str], dict]
|
web_translations: dict[tuple[str, str], dict]
|
||||||
def __init__(self) -> None: ...
|
def __init__(self) -> None: ...
|
||||||
def _get_po_paths(self, mod: str, lang: str) -> list[str]: ...
|
@staticmethod
|
||||||
def _trans_load_code_python(self, fileobj: IO, fileformat: str, lang: str) -> dict: ...
|
def _get_po_paths(mod: str, lang: str) -> list[str]: ...
|
||||||
def _trans_load_code_webclient(self, fileobj: IO, fileformat: str, lang: str) -> dict: ...
|
@staticmethod
|
||||||
def _load_python_translations(self, module_name: str, lang: str) -> None: ...
|
def _read_code_translations_file(fileobj: IO, filter_func: Callable) -> dict: ...
|
||||||
def _load_web_translations(self, module_name: str, lang: str) -> None: ...
|
@staticmethod
|
||||||
|
def _get_code_translations(module_name: str, lang: str, filter_func: Callable) -> dict: ...
|
||||||
|
def _load_python_translations(self, module_name: str, lang: str): ...
|
||||||
|
def _load_web_translations(self, module_name: str, lang: str): ...
|
||||||
def get_python_translations(self, module_name: str, lang: str) -> dict: ...
|
def get_python_translations(self, module_name: str, lang: str) -> dict: ...
|
||||||
def get_web_translations(self, module_name: str, lang: str) -> dict: ...
|
def get_web_translations(self, module_name: str, lang: str) -> dict: ...
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user