summaryrefslogtreecommitdiff
path: root/addons/website_forum/data
diff options
context:
space:
mode:
authorOkan SUMER (osu) <osu@odoo.com>2020-03-18 15:55:18 +0000
committerJeremy Kersten <jke@odoo.com>2020-05-14 18:27:00 +0000
commitbfb70b6b9c0afceaa145d5053ea68e1d1e08d21e (patch)
tree3363d11a15fd3f7295c2ebbbff91e388b073b2c9 /addons/website_forum/data
parent87a1b547178db9531df7f81bd89516f1d08f6320 (diff)
[IMP] website_forum: rename fields, labels, texts,...
This commit rename every "Question" references by "Post" to make it appropriate for both forum's type (Question and Discussion) It renames some other fields/labels to be shorter or with a capital letter at the start. Update demo data to add a title to answers Part of https://github.com/odoo/odoo/pull/46634 task-2201708
Diffstat (limited to 'addons/website_forum/data')
-rw-r--r--addons/website_forum/data/forum_data.xml26
-rw-r--r--addons/website_forum/data/forum_demo.xml2
2 files changed, 15 insertions, 13 deletions
diff --git a/addons/website_forum/data/forum_data.xml b/addons/website_forum/data/forum_data.xml
index bda7eb83e21..3000a08e72e 100644
--- a/addons/website_forum/data/forum_data.xml
+++ b/addons/website_forum/data/forum_data.xml
@@ -77,55 +77,55 @@
<!-- Reasons for closing Post -->
<record id="reason_1" model="forum.post.reason">
- <field name="name">duplicate post</field>
+ <field name="name">Duplicate post</field>
<field name="reason_type">basic</field>
</record>
<record id="reason_2" model="forum.post.reason">
- <field name="name">off-topic or not relevant</field>
+ <field name="name">Off-topic or not relevant</field>
<field name="reason_type">basic</field>
</record>
<record id="reason_3" model="forum.post.reason">
- <field name="name">too subjective and argumentative</field>
+ <field name="name">Too subjective and argumentative</field>
<field name="reason_type">basic</field>
</record>
<record id="reason_4" model="forum.post.reason">
- <field name="name">not a real post</field>
+ <field name="name">Not a real post</field>
<field name="reason_type">basic</field>
</record>
<record id="reason_6" model="forum.post.reason">
- <field name="name">not relevant or out dated</field>
+ <field name="name">Not relevant or out dated</field>
<field name="reason_type">basic</field>
</record>
<record id="reason_7" model="forum.post.reason">
- <field name="name">contains offensive or malicious remarks</field>
+ <field name="name">Contains offensive or malicious remarks</field>
<field name="reason_type">basic</field>
</record>
<record id="reason_8" model="forum.post.reason">
- <field name="name">spam or advertising</field>
+ <field name="name">Spam or advertising</field>
<field name="reason_type">basic</field>
</record>
<record id="reason_9" model="forum.post.reason">
- <field name="name">too localized</field>
+ <field name="name">Too localized</field>
<field name="reason_type">basic</field>
</record>
<record id="reason_11" model="forum.post.reason">
- <field name="name">insulting and offensive language</field>
+ <field name="name">Insulting and offensive language</field>
<field name="reason_type">offensive</field>
</record>
<record id="reason_12" model="forum.post.reason">
- <field name="name">violent language</field>
+ <field name="name">Violent language</field>
<field name="reason_type">offensive</field>
</record>
<record id="reason_13" model="forum.post.reason">
- <field name="name">inappropriate and unacceptable statements</field>
+ <field name="name">Inappropriate and unacceptable statements</field>
<field name="reason_type">offensive</field>
</record>
<record id="reason_14" model="forum.post.reason">
- <field name="name">threatening language</field>
+ <field name="name">Threatening language</field>
<field name="reason_type">offensive</field>
</record>
<record id="reason_15" model="forum.post.reason">
- <field name="name">racist and hate speech</field>
+ <field name="name">Racist and hate speech</field>
<field name="reason_type">offensive</field>
</record>
diff --git a/addons/website_forum/data/forum_demo.xml b/addons/website_forum/data/forum_demo.xml
index 2884cab5c76..041ef4c8831 100644
--- a/addons/website_forum/data/forum_demo.xml
+++ b/addons/website_forum/data/forum_demo.xml
@@ -48,6 +48,7 @@ In simple words does Odoo became CMS+ERP platform?</p>]]></field>
<!-- Answer -->
<record id="answer_0" model="forum.post">
<field name="forum_id" ref="website_forum.forum_help"/>
+ <field name="name">Re: How to configure alerts for employee contract expiration</field>
<field name="content"><![CDATA[<p>Just for posterity so other can see. Here are the steps to set automatic alerts on any contract.. i.e. HR Employee, or Fleet for example. I will use fleet as an example.</p>
<ul>
<li>Step 1. As a user who has access rights to Technical Features, go to Settings --> Automated Actions. Create A new Automated Action. For the Related Document Model choose.. Contract information on a vehicle (you can also type in the actual model name.. fleet.vehicle.log.contract ) . Set the trigger date to ... Contract Expiration Date. The Next Field (Delay After Trigger Date) is a bit ridiculous. Who wants to be reminded of a contract expiration AFTER the fact? The field should say Days Before Date to Fire Action and the number should be converted to a negative. IMHO. Any way... to get a workable solution you must enter in the number in the negative. So for instance like me if you want to be warned 35 days BEFORE the expiration... put in Delay After Trigger Date.. the number -35 But the sake of testing, right now just put in -1 for 1 day before. Save the Action.
@@ -59,6 +60,7 @@ In simple words does Odoo became CMS+ERP platform?</p>]]></field>
</record>
<record id="answer_1" model="forum.post">
<field name="forum_id" ref="website_forum.forum_help"/>
+ <field name="name">Re: CMS replacement for ERP and eCommerce</field>
<field name="content"><![CDATA[
<p>Odoo v8 provides a web module and an e-commerce module: www.odoo.com/page/website-builder
The CMS editor in Odoo web is nice but I prefer Drupal for customization and there is a Drupal module for Odoo. I think WP is better than Odoo web too.