4 <!-- MAIN FORUM MENU -->
5 <menuitem name="Forum" id="menu_website_forum"
6 parent="mail.mail_feeds_main" sequence="50"/>
9 <record id="view_forum_forum_list" model="ir.ui.view">
10 <field name="name">forum.forum.list</field>
11 <field name="model">forum.forum</field>
12 <field name="arch" type="xml">
13 <tree string="Forums">
15 <field name="allow_question"/>
16 <field name="allow_link"/>
17 <field name="allow_discussion"/>
22 <record id="view_forum_forum_form" model="ir.ui.view">
23 <field name="name">forum.forum.form</field>
24 <field name="model">forum.forum</field>
25 <field name="arch" type="xml">
28 <label for="name" class="oe_edit_only"/>
33 <page string="Options">
34 <group string="Post Types">
35 <field name="allow_question"/>
36 <field name="allow_link"/>
37 <field name="allow_discussion"/>
38 <field name="default_post_type"/>
40 <group string="Orders">
41 <field name="default_order"/>
42 <label for="relevancy_post_vote" string="Relevancy Computation"/>
44 (votes - 1) ** <field name="relevancy_post_vote" class="oe_inline"/> / (days + 2) ** <field name="relevancy_time_decay" class="oe_inline"/>
48 <page string='Karma Gains'>
50 <field name="karma_gen_question_new"/>
51 <field name="karma_gen_question_upvote"/>
52 <field name="karma_gen_question_downvote"/>
53 <field name="karma_gen_answer_upvote"/>
54 <field name="karma_gen_answer_downvote"/>
55 <field name="karma_gen_answer_accept"/>
56 <field name="karma_gen_answer_accepted"/>
57 <field name="karma_gen_answer_flagged"/>
60 <page string='Karma Related Rights'>
63 <field name="karma_ask"/>
64 <field name="karma_upvote"/>
65 <field name="karma_downvote"/>
66 <field name="karma_edit_own"/>
67 <field name="karma_edit_all"/>
68 <field name="karma_close_own"/>
69 <field name="karma_close_all"/>
70 <field name="karma_unlink_own"/>
71 <field name="karma_unlink_all"/>
72 <field name="karma_dofollow"/>
75 <field name="karma_answer_accept_own"/>
76 <field name="karma_answer_accept_all"/>
77 <field name="karma_editor_link_files"/>
78 <field name="karma_editor_clickable_link"/>
79 <field name="karma_comment_own"/>
80 <field name="karma_comment_all"/>
81 <field name="karma_comment_convert_own"/>
82 <field name="karma_comment_convert_all"/>
83 <field name="karma_comment_unlink_own"/>
84 <field name="karma_comment_unlink_all"/>
90 <div class="oe_chatter">
91 <field name="message_follower_ids" widget="mail_followers" groups="base.group_user"/>
92 <field name="message_ids" widget="mail_thread" options='{"thread_level": 1}' placeholder="Send a message to the group"/>
98 <record id="action_forum_forum" model="ir.actions.act_window">
99 <field name="name">Forums</field>
100 <field name="res_model">forum.forum</field>
101 <field name="view_type">form</field>
102 <field name="view_mode">tree,form</field>
105 <menuitem id="menu_forum" parent="menu_website_forum" name="Forums" action="action_forum_forum" sequence="10"/>
108 <record id="view_forum_post_list" model="ir.ui.view">
109 <field name="name">forum.post.list</field>
110 <field name="model">forum.post</field>
111 <field name="arch" type="xml">
112 <tree string="Forum Posts">
114 <field name="forum_id"/>
119 <record id="view_forum_post_form" model="ir.ui.view">
120 <field name="name">forum.post.form</field>
121 <field name="model">forum.post</field>
122 <field name="arch" type="xml">
123 <form string="Forum Post">
125 <label for="name" class="oe_edit_only"/>
127 <field name="name" placeholder="Name"/>
131 <field name="forum_id"/>
132 <field name="parent_id"/>
134 <field name="tag_ids" widget="many2many_tags"/>
135 <field name="state"/>
136 <field name="closed_reason_id"/>
137 <field name="closed_uid"/>
138 <field name="closed_date"/>
140 <field name="create_uid"/>
141 <field name="create_date"/>
142 <field name="write_uid"/>
143 <field name="write_date"/>
145 <field name="is_correct"/>
146 <field name="views"/>
147 <field name="vote_count"/>
148 <field name="favourite_count"/>
149 <field name="child_count"/>
150 <field name="relevancy"/>
154 <div class="oe_chatter">
155 <field name="message_follower_ids" widget="mail_followers" groups="base.group_user"/>
156 <field name="message_ids" widget="mail_thread" options='{"thread_level": 1}' placeholder="Send a message to the group"/>
162 <record id="view_forum_post_search" model="ir.ui.view">
163 <field name="name">forum.post.search</field>
164 <field name="model">forum.post</field>
165 <field name="arch" type="xml">
166 <search string="Search in Post">
167 <field name="name" string="Content" filter_domain="['|', ('name', 'ilike', self), ('content', 'ilike', self)]"/>
168 <field name="create_uid"/>
169 <field name="forum_id"/>
170 <group expand="0" string="Group By">
171 <filter string="Forum" domain="[]" context="{'group_by': 'forum_id'}"/>
172 <filter string="Author" domain="[]" context="{'group_by': 'create_uid'}"/>
178 <record id="action_forum_post" model="ir.actions.act_window">
179 <field name="name">Forum Posts</field>
180 <field name="res_model">forum.post</field>
181 <field name="view_type">form</field>
182 <field name="view_mode">tree,form</field>
183 <field name="view_id" ref="view_forum_post_list"/>
184 <field name="search_view_id" ref="view_forum_post_search"/>
187 <menuitem id="menu_forum_posts" parent="menu_website_forum" name="Posts" action="action_forum_post" sequence="20"/>