forum.post: fields, relations and API
The forum.post model ("Forum Post") is a persistent model declared by the Forum module. It exposes 78 fields, 58 of them declared directly on the model; 4 fields from other models point to it. Below you will find every field with its technical name, type, label and relations, followed by an Odoo 19 JSON-2 API call.
Model identity
- Technical name
forum.post- Label
- Forum Post
- Type
- Persistent (models.Model)
- SQL table
forum_post- Origin module
- Forum (
website_forum) - Default order (_order)
is_correct DESC, vote_count DESC, last_activity_date DESC- Inherits from (mixins)
- mail.threadwebsite.seo.metadatawebsite.searchable.mixin
Model fields
58 own fields, 18 inherited from mixins and 2 automatic ORM fields. Click a name to get a direct link to that field.
78 of 78 fields shown
| Technical name | Label | Type | Details |
|---|---|---|---|
| active | Active | boolean | |
| can_accept | Can Accept | boolean | computed |
| can_answer | Can Answer | boolean | computed |
| can_ask | Can Ask | boolean | computed |
| can_close | Can Close | boolean | computed |
| can_comment | Can Comment | boolean | computed |
| can_comment_convert | Can Convert to Comment | boolean | computed |
| can_display_biography | Is the author's biography visible from his post | boolean | computed |
| can_downvote | Can Downvote | boolean | computed |
| can_edit | Can Edit | boolean | computed |
| can_flag | Can Flag | boolean | computed |
| can_moderate | Can Moderate | boolean | computed |
| can_post | Can Automatically be Validated | boolean | computed |
| can_unlink | Can Unlink | boolean | computed |
| can_upvote | Can Upvote | boolean | computed |
| can_use_full_editor | Can Use Full Editor | boolean | computed |
| can_view | Can View | boolean | computed |
| child_count | Answers | integer | computed, stored |
| child_ids | Post Answers | one2many | inverse: |
| closed_date | Closed on | datetime | read-only |
| closed_reason_id | Reason | many2one | |
| closed_uid | Closed by | many2one | read-only |
| content | Content | html | |
| create_date | Asked on | datetime | read-only |
| create_uid | Created by | many2one | read-only |
| favourite_count | Favorite | integer | computed, stored |
| favourite_ids | Favourite | many2many | |
| flag_user_id | Flagged by | many2one | |
| forum_id | Forum | many2one | required |
| has_validated_answer | Is answered | boolean | computed, stored |
| is_correct | Correct Correct answer or answer accepted | boolean | |
| karma_accept | Convert comment to answer | integer | computed |
| karma_close | Karma to close | integer | computed |
| karma_comment | Karma to comment | integer | computed |
| karma_comment_convert | Karma to convert comment to answer | integer | computed |
| karma_edit | Karma to edit | integer | computed |
| karma_flag | Flag a post as offensive | integer | computed |
| karma_unlink | Karma to unlink | integer | computed |
| last_activity_date | Last activity on Field to keep track of a post's last activity. Updated whenever it is replied to, or when a comment is added on the post or one of its replies. | datetime | requiredread-only |
| moderator_id | Reviewed by | many2one | read-only |
| name | Title | char | |
| parent_id | Question | many2one | read-only |
| plain_content | Plain Content | text | computed, stored |
| relevancy | Relevance | float | computed, stored |
| self_reply | Reply to own question | boolean | computed, stored |
| state | Status | selection | Values: |
| tag_ids | Tags | many2many | |
| uid_has_answered | Has Answered | boolean | computed |
| user_favourite | Is Favourite | boolean | computed |
| user_vote | My Vote | integer | computed |
| views | Views | integer | read-only |
| vote_count | Total Votes | integer | computed, stored |
| vote_ids | Votes | one2many | inverse: |
| website_id | Website | many2one→ website | read-only related: |
| website_message_ids | Website Message | one2many | |
| website_url | Website URL | char | computed |
| write_date | Updated on | datetime | read-only |
| write_uid | Updated by | many2one | read-only |
| has_message | Has Message | boolean | computed inherited from mail.thread |
| is_seo_optimized | SEO optimized | boolean | computed, stored inherited from website.seo.metadata |
| message_attachment_count | Attachment Count | integer | computed inherited from mail.thread |
| message_follower_ids | Followers | one2many | inverse: inherited from mail.thread |
| message_has_error | Message Delivery error If checked, some messages have a delivery error. | boolean | computed inherited from mail.thread |
| message_has_error_counter | Number of errors Number of messages with delivery error | integer | computed inherited from mail.thread |
| message_has_sms_error | SMS Delivery error If checked, some messages have a delivery error. | boolean | computed inherited from mail.thread |
| message_ids | Messages | one2many | inverse: inherited from mail.thread |
| message_is_follower | Is Follower | boolean | computed inherited from mail.thread |
| message_needaction | Action Needed If checked, new messages require your attention. | boolean | computed inherited from mail.thread |
| message_needaction_counter | Number of Actions Number of messages requiring action | integer | computed inherited from mail.thread |
| message_partner_ids | Followers (Partners) | many2many | computed inherited from mail.thread |
| rating_ids | Ratings | one2many | inverse: inherited from mail.thread |
| seo_name | Seo name | char | translatable inherited from website.seo.metadata |
| website_meta_description | Website meta description | text | translatable inherited from website.seo.metadata |
| website_meta_keywords | Website meta keywords | char | translatable inherited from website.seo.metadata |
| website_meta_og_img | Website opengraph image | char | inherited from website.seo.metadata |
| website_meta_title | Website meta title | char | translatable inherited from website.seo.metadata |
| display_name | Display Name | char | read-onlycomputedautomatic |
| id | ID | integer | read-onlyautomatic |
Relations
Models linked from this model
- forum.forum: forum_id
- forum.post: child_ids, parent_id
- forum.post.reason: closed_reason_id
- forum.post.vote: vote_ids
- forum.tag: tag_ids
- mail.message: website_message_ids
- res.users: closed_uid, create_uid, favourite_ids, flag_user_id, moderator_id, write_uid
- website: website_id
Fields of other models pointing here
- forum.forum: last_post_id
- forum.post: parent_id
- forum.post.vote: post_id
- forum.tag: post_ids
Reading this model through the API
Odoo 19 JSON-2 API call reading the first five records with real fields of the model. Replace the instance, database and API key with your own.
curl -X POST "https://your-instance.odoo.com/json/2/forum.post/search_read" \
-H "Authorization: bearer $ODOO_API_KEY" \
-H "X-Odoo-Database: your-db" \
-H "Content-Type: application/json" \
-d '{"domain":[],"fields":["name","forum_id","last_activity_date","state","closed_reason_id"],"limit":5}'import requests
BASE_URL = "https://your-instance.odoo.com/json/2"
headers = {"Authorization": f"bearer {API_KEY}", "X-Odoo-Database": "your-db"}
res = requests.post(
f"{BASE_URL}/forum.post/search_read",
headers=headers,
json={"domain": [], "fields": ["name","forum_id","last_activity_date","state","closed_reason_id"], "limit": 5},
)
res.raise_for_status()
print(res.json())- External API access requires Odoo's Custom plan.
- XML-RPC and JSON-RPC will be removed in Odoo 22 (fall 2028): use JSON-2.
- The access rights and record rules of the key's user apply.
Cite this tool
Writing a tutorial, internal documentation or a forum answer? Copy this link to send your readers to the up-to-date reference.
<a href="https://aidoo.ai/en/outils/explorateur-modeles-odoo/forum-post">forum.post (Odoo 19.0)</a>Sources
Data verified on September 23, 2026 · Odoo 19.0 Community
Have an Odoo project, or want to put your ERP to work with AI? Let's talk
Implementation, custom module development, connecting Claude or ChatGPT to your data: tell us about your context and we will reply within 24 business hours.