Update stubs

This commit is contained in:
Trinh Anh Ngoc
2024-05-06 20:57:55 +07:00
parent 62ec49431a
commit ea00b2b24f
4 changed files with 8 additions and 0 deletions

View File

@@ -19,6 +19,7 @@ from .fields import Command as Command
from .tools.translate import _ as _
from .tools.translate import _lt as _lt
MIN_PY_VERSION: tuple[int, ...]
evented: bool
multi_process: bool
iso8859_8: CodecInfo

View File

@@ -83,6 +83,8 @@ PREFETCH_MAX: int
LOG_ACCESS_COLUMNS: list[str]
MAGIC_COLUMNS: list[str]
READ_GROUP_TIME_GRANULARITY: dict[str, dateutil.relativedelta.relativedelta]
READ_GROUP_NUMBER_GRANULARITY: dict[str, str]
READ_GROUP_ALL_TIME_GRANULARITY: dict[str, Any]
READ_GROUP_AGGREGATE: dict[str, Callable[[str, str | SQL], SQL]]
READ_GROUP_DISPLAY_FORMAT: dict[str, str]
@@ -398,6 +400,7 @@ class BaseModel(metaclass=MetaModel):
) -> None: ...
def copy(self: _ModelT, default: dict[str, Any] | None = ...) -> _ModelT: ...
def exists(self: _ModelT) -> _ModelT: ...
def _has_cycle(self, field_name: str | None = ...) -> bool: ...
def _check_recursion(self, parent: str | None = ...) -> bool: ...
def _check_m2m_recursion(self, field_name: str) -> bool: ...
def _get_external_ids(self) -> dict[int, list[str]]: ...
@@ -418,6 +421,7 @@ class BaseModel(metaclass=MetaModel):
def action_unarchive(self): ...
def _register_hook(self) -> None: ...
def _unregister_hook(self) -> None: ...
def _get_redirect_suggested_company(self) -> Company: ...
def __init__(
self, env: Environment, ids: tuple, prefetch_ids: Iterable[int]
) -> None: ...

View File

@@ -4,6 +4,7 @@ from typing import Any, Callable
from lxml.etree import _Element
RSTRIP_REGEXP: Pattern
PYTHON_ATTRIBUTES: set[str]
def add_stripped_items_before(
node: _Element, spec: _Element, extract: Callable[[_Element], _Element]

View File

@@ -6,6 +6,8 @@ from odoo.addons.base.models.ir_attachment import IrAttachment
from ..api import Environment
def remove_control_characters(byte_node) -> str: ...
class odoo_resolver(etree.Resolver):
env: Environment
prefix: str | None