Async Documents¶
AsyncDocumentNamespace for the documents.document model (Odoo Enterprise), accessed as client.documents on AsyncOdooClient.
documents
¶
Async Odoo Documents operations for Vodoo.
AsyncDocumentNamespace
¶
AsyncDocumentNamespace(client: AsyncOdooClient)
Bases: GeneratedAsyncDocumentNamespace
Async namespace for the documents.document model.
Source code in src/vodoo/aio/_domain.py
folders
async
¶
List accessible folders, normalizing parent relationships across Odoo versions.
Source code in src/vodoo/aio/documents.py
resolve_folder
async
¶
Resolve a positive folder ID or exact folder name to its record ID.
Source code in src/vodoo/aio/documents.py
upload
async
¶
upload(file_path: Path | str, *, folder: int | str | None = None, folder_id: int | None = None, tags: list[str | int] | None = None, owner: str | int | None = None, name: str | None = None) -> int
Upload a file, specifying exactly one of folder or folder_id.
Optional tags and owner may be resolved by positive ID or exact name.
Source code in src/vodoo/aio/documents.py
download_file
async
¶
Download a document and return the resolved output path.