[ADD] website_forum: added demo data for article and discussion.

This commit is contained in:
tpa-odoo
2014-09-23 14:28:25 +05:30
parent 7f2d4f2ce5
commit 95ade32e4d
+53
View File
@@ -15,11 +15,16 @@
<field name="name">ecommerce</field>
<field name="forum_id" ref="website_forum.forum_help"/>
</record>
<record id="tags_3" model="forum.tag">
<field name="name">Development</field>
<field name="forum_id" ref="website_forum.forum_help"/>
</record>
<!-- Questions -->
<record id="question_0" model="forum.post">
<field name="name">How to configure alerts for employee contract expiration</field>
<field name="forum_id" ref="website_forum.forum_help"/>
<field name="type">question</field>
<field name="views">3</field>
<field name="tag_ids" eval="[(4,ref('website_forum.tags_0')), (4,ref('website_forum.tags_1'))]"/>
</record>
@@ -32,6 +37,7 @@
Can I use Odoo as a replacement CMS of Wordpress + eCommerce plugin?
In simple words does Odoo became CMS+ERP platform?</p>]]></field>
<field name="type">question</field>
<field name="tag_ids" eval="[(4,ref('website_forum.tags_2'))]"/>
</record>
@@ -46,6 +52,7 @@ In simple words does Odoo became CMS+ERP platform?</p>]]></field>
<li>Step 4. To test, set a contract to expire tomorrow under one of your fleets vehicles. Then Save it.</li>
<li>Step 5. Go to Scheduled Actions.. Set interval number to 1. Interval Unit to Minutes. Then Set the Next Execution date to 2 minutes from now. If your SMTP is configured correctly you will start to get a mail every minute with the reminder.</li></ul>]]></field>
<field name="parent_id" ref="question_0" />
<field name="type">question</field>
</record>
<record id="answer_1" model="forum.post">
<field name="forum_id" ref="website_forum.forum_help"/>
@@ -53,6 +60,47 @@ In simple words does Odoo became CMS+ERP platform?</p>]]></field>
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.
</field>
<field name="parent_id" ref="question_1"/>
<field name="type">question</field>
</record>
<!-- Article-->
<record id="article_0" model="forum.post">
<field name="name">https://www.odoo.com/forum/how-to/developers-13/the-different-openerp-model-inheritance-mechanisms-whats-the-difference-between-them-and-when-should-they-be-used-46</field>
<field name="content">OpenERP S.A. - The different "openerp model inheritance" mechanisms: what's the difference between them, and when should they be used ?</field>
<field name="forum_id" ref="website_forum.forum_help"/>
<field name="type">link</field>
<field name="views">6</field>
<field name="tag_ids" eval="[(4,ref('website_forum.tags_3'))]"/>
</record>
<!-- Discussion-->
<record id="discussion_0" model="forum.post">
<field name="name">How to setup a regular PostgreSQL database backup</field>
<field name="content">I'm not familiar with PostgreSQL database administration , so I figured I might ask for help from someone more knowledgeable on the subject.
What would you recommend in order to setup a regular (daily) OpenERP database backup?
Ideally, this would be done without stopping the database (hot backup). Is it possible to setup incremental backups, e.g., one weekly reference backup and daily incremental backups?
Are there any automation scripts available I might use?
(I'm using Ubuntu Server.)</field>
<field name="forum_id" ref="website_forum.forum_help"/>
<field name="type">discussion</field>
<field name="views">5</field>
</record>
<record id="reply_1" model="forum.post">
<field name="forum_id" ref="website_forum.forum_help"/>
<field name="content"><![CDATA[<p>I use the following setup:</p>
<ol>
<li>Backup-Script</li>
<li>Housekeeping script (deletes backups which are older than 30 days)</li>
<li>Create daily cronjobs in to run Backup and Housekeeping Script. The backup runs daily at 1am and the housekeeping job runs daily at 5am.</li>
</ol>]]>
</field>
<field name="parent_id" ref="discussion_0"/>
<field name="type">discussion</field>
</record>
<!-- Post Vote -->
@@ -66,6 +114,11 @@ In simple words does Odoo became CMS+ERP platform?</p>]]></field>
<field name="user_id" ref="base.user_demo"/>
<field name="vote">1</field>
</record>
<record id="post_vote_3" model="forum.post.vote">
<field name="post_id" ref="article_0"/>
<field name="user_id" ref="base.user_demo"/>
<field name="vote">1</field>
</record>
<!-- Run Scheduler -->
<function model="gamification.challenge" name="_cron_update"/>