Async Generic CRUD¶
AsyncGenericNamespace for generic model operations that work with any Odoo model, accessed as client.generic on AsyncOdooClient.
generic
¶
Async generic Odoo model operations.
AsyncGenericNamespace
¶
AsyncGenericNamespace(client: AsyncOdooClient)
Async generic model operations for any Odoo model.
Source code in src/vodoo/aio/generic.py
create
async
¶
update
async
¶
delete
async
¶
search
async
¶
search(model: str, domain: list[Any] | None = None, fields: list[str] | None = None, limit: int | None = None, offset: int = 0, order: str | None = None) -> list[dict[str, Any]]
Search and read records.
Source code in src/vodoo/aio/generic.py
call
async
¶
call(model: str, method: str, args: list[Any] | None = None, kwargs: dict[str, Any] | None = None) -> Any
Call a custom method on a model.