This commit is contained in:
Trinh Anh Ngoc
2023-05-26 15:48:15 +07:00
parent f3ab8e8130
commit b7e2116dcc

View File

@@ -106,7 +106,6 @@ class BaseModel(metaclass=MetaModel):
_log_access: bool
_ids: tuple
_prefetch_ids: Iterable[int]
__base_classes: tuple[type[BaseModel] | type, ...]
env: Environment = ...
pool: Registry
id = fields.Id()
@@ -142,13 +141,9 @@ class BaseModel(metaclass=MetaModel):
def __new__(cls) -> None: ...
def __init__(self, pool: Registry, cr: Cursor) -> None: ...
def _is_an_ordinary_table(self) -> bool: ...
def __ensure_xml_id(
self: _ModelT, skip: bool = ...
) -> Iterator[tuple[_ModelT, str | None]]: ...
def _export_rows(
self, fields: list[list[str]], *, _is_toplevel_call: bool = ...
) -> list[list]: ...
__export_rows = _export_rows
def export_data(self, fields_to_export: list[str]) -> dict[str, list[list]]: ...
def load(self, fields: list[str], data: list[list[str]]) -> dict[str, Any]: ...
def _add_fake_fields(