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:
@@ -386,8 +386,29 @@ class BaseModel(metaclass=MetaModel):
|
|||||||
order: str | None = ...,
|
order: str | None = ...,
|
||||||
seen: set | None = ...,
|
seen: set | None = ...,
|
||||||
) -> None: ...
|
) -> None: ...
|
||||||
|
@overload
|
||||||
def _search(
|
def _search(
|
||||||
self: _ModelT,
|
self,
|
||||||
|
args: list,
|
||||||
|
offset: int = ...,
|
||||||
|
limit: int | None = ...,
|
||||||
|
order: str | None = ...,
|
||||||
|
count: Literal[False] = ...,
|
||||||
|
access_rights_uid: int | None = ...,
|
||||||
|
) -> Query: ...
|
||||||
|
@overload
|
||||||
|
def _search(
|
||||||
|
self,
|
||||||
|
args: list,
|
||||||
|
offset: int = ...,
|
||||||
|
limit: int | None = ...,
|
||||||
|
order: str | None = ...,
|
||||||
|
count: Literal[True] = ...,
|
||||||
|
access_rights_uid: int | None = ...,
|
||||||
|
) -> int: ...
|
||||||
|
@overload
|
||||||
|
def _search(
|
||||||
|
self,
|
||||||
args: list,
|
args: list,
|
||||||
offset: int = ...,
|
offset: int = ...,
|
||||||
limit: int | None = ...,
|
limit: int | None = ...,
|
||||||
|
|||||||
Reference in New Issue
Block a user