Knowledge¶
KnowledgeNamespace for the knowledge.article model (Odoo Enterprise), accessed as client.knowledge.
knowledge
¶
Knowledge article operations for Vodoo.
KnowledgeNamespace
¶
KnowledgeNamespace(client: OdooClient)
Bases: _KnowledgeAttrs, DomainNamespace
Namespace for knowledge.article model.
Source code in src/vodoo/_domain.py
create
¶
create(name: str, *, body: str | None = None, parent_id: int | None = None, category: str | None = None, icon: str | None = None, **extra_fields: Any) -> int
Create a knowledge article.
| PARAMETER | DESCRIPTION |
|---|---|
name
|
Article title/name.
TYPE:
|
body
|
Article body as markdown text (converted to HTML).
TYPE:
|
parent_id
|
Parent article ID.
TYPE:
|
category
|
Article category (workspace/private/shared).
TYPE:
|
icon
|
Emoji/icon for the article.
TYPE:
|
**extra_fields
|
Additional fields to set on the article.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
int
|
ID of created article. |
Source code in src/vodoo/knowledge.py
url
¶
Get the web URL for a knowledge article.
Tries the article_url field first, falls back to the standard URL.
Source code in src/vodoo/knowledge.py
display_article_detail
¶
Display detailed knowledge article information with body content.