From 3751379f1e9a4c215fb6eb898b4ccc67659b9ace Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Tue, 10 May 2022 21:51:50 +0700 Subject: initial commit 2 --- addons/website_forum/data/badges_answer.xml | 256 +++++++++++++ addons/website_forum/data/badges_moderation.xml | 193 ++++++++++ addons/website_forum/data/badges_participation.xml | 176 +++++++++ addons/website_forum/data/badges_question.xml | 399 +++++++++++++++++++++ addons/website_forum/data/forum_data.xml | 133 +++++++ addons/website_forum/data/forum_default_faq.xml | 92 +++++ addons/website_forum/data/forum_demo.xml | 90 +++++ 7 files changed, 1339 insertions(+) create mode 100644 addons/website_forum/data/badges_answer.xml create mode 100644 addons/website_forum/data/badges_moderation.xml create mode 100644 addons/website_forum/data/badges_participation.xml create mode 100644 addons/website_forum/data/badges_question.xml create mode 100644 addons/website_forum/data/forum_data.xml create mode 100644 addons/website_forum/data/forum_default_faq.xml create mode 100644 addons/website_forum/data/forum_demo.xml (limited to 'addons/website_forum/data') diff --git a/addons/website_forum/data/badges_answer.xml b/addons/website_forum/data/badges_answer.xml new file mode 100644 index 00000000..30e1887d --- /dev/null +++ b/addons/website_forum/data/badges_answer.xml @@ -0,0 +1,256 @@ + + + + + + + + Teacher + Received at least 3 upvote for an answer for the first time + bronze + nobody + + + Teacher + Received at least 3 upvote for an answer for the first time + count + boolean + + higher + [('parent_id', '!=', False), ('vote_count', '>=', 3)] + True + + user.id + + + Teacher + once + personal + never + + True + [('karma', '>', 0)] + inprogress + forum + + + + + 1 + + + + Nice Answer + Answer voted up 4 times + bronze + nobody + + + Nice Answer (4) + Answer voted up 4 times + count + boolean + + higher + [('parent_id', '!=', False), ('vote_count', '>=', 4)] + True + + user.id + + + Nice Answer + once + personal + never + + True + [('karma', '>', 0)] + inprogress + forum + + + + + 1 + + + + Good Answer + Answer voted up 6 times + silver + nobody + + + Good Answer (6) + Answer voted up 6 times + count + boolean + + higher + [('parent_id', '!=', False), ('vote_count', '>=', 6)] + True + + user.id + + + Good Answer + once + personal + never + + True + [('karma', '>', 0)] + inprogress + forum + + + + + 1 + + + + Great Answer + Answer voted up 15 times + gold + nobody + + + Great Answer (15) + Answer voted up 15 times + count + boolean + + higher + [('parent_id', '!=', False), ('vote_count', '>=', 15)] + True + + user.id + + + Great Answer + once + personal + never + + True + [('karma', '>', 0)] + inprogress + forum + + + + + 1 + + + + + + Enlightened + Answer was accepted with 3 or more votes + silver + nobody + + + Enlightened + Answer was accepted with 3 or more votes + count + boolean + + higher + [('parent_id', '!=', False), ('vote_count', '>=', 3), ('is_correct', '=', True)] + True + + user.id + + + Enlightened + once + personal + never + + True + [('karma', '>', 0)] + inprogress + forum + + + + + 1 + + + + Guru + Answer accepted with 15 or more votes + silver + nobody + + + Guru (15) + Answer accepted with 15 or more votes + count + boolean + + higher + [('parent_id', '!=', False), ('vote_count', '>=', 15), ('is_correct', '=', True)] + True + + user.id + + + Guru + once + personal + never + + True + [('karma', '>', 0)] + inprogress + forum + + + + 1 + + + + + + Self-Learner + Answered own question with at least 4 up votes + gold + nobody + + + Self-Learner + Answer own question with at least 4 up votes + count + boolean + + higher + [('self_reply', '=', True), ('vote_count', '>=', 4)] + True + + user.id + + + Self-Learner + once + personal + never + + True + [('karma', '>', 0)] + inprogress + forum + + + + 1 + + + + + diff --git a/addons/website_forum/data/badges_moderation.xml b/addons/website_forum/data/badges_moderation.xml new file mode 100644 index 00000000..339029bf --- /dev/null +++ b/addons/website_forum/data/badges_moderation.xml @@ -0,0 +1,193 @@ + + + + + + + + + + + Critic + First downvote + bronze + nobody + + + Critic + First downvote + count + boolean + + higher + [('vote', '=', '-1')] + True + + user.id + + + Critic + once + personal + never + + True + [('karma', '>', 0)] + inprogress + forum + + + + + 1 + + + + + Disciplined + Deleted own post with 3 or more upvotes + bronze + nobody + + + Disciplined + Delete own post with 3 or more upvotes + count + boolean + + higher + [('vote_count', '>=', 3), ('active', '=', False)] + True + + user.id + + + Disciplined + once + personal + never + + True + [('karma', '>', 0)] + inprogress + forum + + + + + 1 + + + + + Editor + First edit + gold + nobody + + + Editor + First edit of answer or question + count + boolean + + higher + + True + + user.partner_id.id + + + Editor + once + personal + never + + True + [('karma', '>', 0)] + inprogress + forum + + + + + 1 + + + + Supporter + First upvote + gold + nobody + + + Supporter + First upvote + count + boolean + + higher + [('vote', '=', '1')] + True + + user.id + + + Supporter + once + personal + never + + True + [('karma', '>', 0)] + inprogress + forum + + + + 1 + + + + + + Peer Pressure + Deleted own post with 3 or more downvotes + gold + nobody + + + Peer Pressure + Delete own post with 3 or more down votes + count + boolean + + higher + [('vote_count', '<=', -3), ('active', '=', False)] + True + + user.id + + + Peer Pressure + once + personal + never + + True + [('karma', '>', 0)] + inprogress + forum + + + + 1 + + + + + diff --git a/addons/website_forum/data/badges_participation.xml b/addons/website_forum/data/badges_participation.xml new file mode 100644 index 00000000..e263003c --- /dev/null +++ b/addons/website_forum/data/badges_participation.xml @@ -0,0 +1,176 @@ + + + + + + + Autobiographer + Completed own biography + bronze + nobody + + + Completed own biography + Write some information about yourself + count + boolean + + higher + [ + ('partner_id.country_id', '!=', False), + ('partner_id.city', '!=', False), + ('partner_id.email', '!=', False) + ] + True + + user.id + + + Complete own biography + once + personal + never + + True + [('karma', '>', 0)] + inprogress + forum + + + + + 1 + + + + + Commentator + Posted 10 comments + bronze + nobody + + + Commentator + Comment an answer or a question + count + boolean + + higher + + True + + user.partner_id.id + + + Commentator + once + personal + never + + True + [('karma', '>', 0)] + inprogress + forum + + + + + 10 + + + + + Pundit + Left 10 answers with score of 10 or more + silver + nobody + + + Pundit + Post 10 answers with score of 10 or more + boolean + higher + + + True + + user.id + + + Pundit + once + personal + never + + True + [('karma', '>', 0)] + inprogress + forum + + + + 10 + + + + + + Chief Commentator + Posted 100 comments + silver + nobody + + + Chief Commentator + once + personal + never + + True + [('karma', '>', 0)] + inprogress + forum + + + + + 100 + + + + Taxonomist + Created a tag used by 15 questions + silver + nobody + + + Taxonomist + Create a tag which can used in minimum 15 questions + count + boolean + + higher + [('posts_count', '>=', 15)] + True + + user.id + + + Taxonomist + once + personal + never + + True + [('karma', '>', 0)] + inprogress + forum + + + + + 1 + + + + diff --git a/addons/website_forum/data/badges_question.xml b/addons/website_forum/data/badges_question.xml new file mode 100644 index 00000000..1da47fa2 --- /dev/null +++ b/addons/website_forum/data/badges_question.xml @@ -0,0 +1,399 @@ + + + + + + + + Popular Question + Asked a question with at least 150 views + bronze + nobody + + + Popular Question (150) + Asked a question with at least 150 views + count + boolean + + [('parent_id', '=', False), ('views', '>=', 150)] + higher + True + + user.id + + + Popular Question + once + personal + never + + True + [('karma', '>', 0)] + inprogress + forum + + + + + 1 + + + + + Notable Question + Asked a question with at least 250 views + silver + nobody + + + Popular Question (250) + Asked a question with at least 250 views + count + boolean + + [('parent_id', '=', False), ('views', '>=', 250)] + higher + True + + user.id + + + Notable Question + once + personal + never + + True + [('karma', '>', 0)] + inprogress + forum + + + + + 1 + + + + Famous Question + Asked a question with at least 500 views + gold + nobody + + + Popular Question (500) + Asked a question with at least 500 views + count + boolean + + [('parent_id', '=', False), ('views', '>=', 500)] + higher + True + + user.id + + + Famous Question + once + personal + never + + True + [('karma', '>', 0)] + inprogress + forum + + + + + 1 + + + + + + Credible Question + Question set as favorite by 1 user + bronze + nobody + + + Favourite Question (1) + Question set as favorite by 1 user + count + boolean + + [('parent_id', '=', False), ('favourite_count', '>=', 1)] + higher + True + + user.id + + + Credible Question + once + personal + never + + True + [('karma', '>', 0)] + inprogress + forum + + + + + 1 + + + + Favorite Question + Question set as favorite by 5 users + silver + nobody + + + Favourite Question (5) + Question set as favorite by 5 user + count + boolean + + [('parent_id', '=', False), ('favourite_count', '>=', 5)] + higher + True + + user.id + + + Favorite Question + once + personal + never + + True + [('karma', '>', 0)] + inprogress + forum + + + + + 1 + + + + Stellar Question + Question set as favorite by 25 users + bronze + nobody + + + Favourite Question (25) + Question set as favorite by 25 user + count + boolean + + [('parent_id', '=', False), ('favourite_count', '>=', 25)] + higher + True + + user.id + + + Stellar Question + once + personal + never + + True + [('karma', '>', 0)] + inprogress + forum + + + + + 1 + + + + + + Student + Asked first question with at least one up vote + gold + nobody + + + Upvoted question (1) + Asked first question with at least one up vote + count + boolean + + [('parent_id', '=', False), ('vote_count', '>=', 1)] + higher + True + + user.id + + + Student + once + personal + never + + True + [('karma', '>', 0)] + inprogress + forum + + + + + 1 + + + + Nice Question + Question voted up 4 times + bronze + nobody + + + Upvoted question (4) + Asked first question with at least 4 up votes + count + boolean + + [('parent_id', '=', False), ('vote_count', '>=', 4)] + higher + True + + user.id + + + Nice Question + once + personal + never + + True + [('karma', '>', 0)] + inprogress + forum + + + + + 1 + + + + Good Question + Question voted up 6 times + silver + nobody + + + Upvoted question (6) + Asked first question with at least 6 up votes + count + boolean + + [('parent_id', '=', False), ('vote_count', '>=', 6)] + higher + True + + user.id + + + Good Question + once + personal + never + + True + [('karma', '>', 0)] + inprogress + forum + + + + + 1 + + + + Great Question + Question voted up 15 times + gold + nobody + + + Upvoted question (15) + Asked first question with at least 15 up votes + count + boolean + + [('parent_id', '=', False), ('vote_count', '>=', 15)] + higher + True + + user.id + + + Great Question + once + personal + never + + True + [('karma', '>', 0)] + inprogress + forum + + + + 1 + + + + + + Scholar + Asked a question and accepted an answer + gold + nobody + + + Scholar + Ask a question and accept an answer + count + boolean + + [('parent_id', '=', False), ('has_validated_answer', '=', True)] + higher + True + + user.id + + + Scholar + once + personal + never + + True + [('karma', '>', 0)] + inprogress + forum + + + + 1 + + + + + diff --git a/addons/website_forum/data/forum_data.xml b/addons/website_forum/data/forum_data.xml new file mode 100644 index 00000000..3000a08e --- /dev/null +++ b/addons/website_forum/data/forum_data.xml @@ -0,0 +1,133 @@ + + + + + Help + This community is for professionals and enthusiasts of our products and services. Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together. + + + + Forum + /forum + + 35 + + + + + + + + Forum + self + + + + + + + + New Answer + forum.post + + + New Answer + + + Answer Edited + forum.post + + Answer Edited + + + + New Question + forum.post + + New Question + + + Question Edited + forum.post + + Question Edited + + + + New Answer + forum.forum + + + + forum_id + + + New Question + forum.forum + + + + forum_id + + + + + open + + + + + Duplicate post + basic + + + Off-topic or not relevant + basic + + + Too subjective and argumentative + basic + + + Not a real post + basic + + + Not relevant or out dated + basic + + + Contains offensive or malicious remarks + basic + + + Spam or advertising + basic + + + Too localized + basic + + + Insulting and offensive language + offensive + + + Violent language + offensive + + + Inappropriate and unacceptable statements + offensive + + + Threatening language + offensive + + + Racist and hate speech + offensive + + + + diff --git a/addons/website_forum/data/forum_default_faq.xml b/addons/website_forum/data/forum_default_faq.xml new file mode 100644 index 00000000..d53d6df2 --- /dev/null +++ b/addons/website_forum/data/forum_default_faq.xml @@ -0,0 +1,92 @@ + + + + Faq Accordion + qweb + website_forum.faq_accordion + +
+
+
+
+ +
+
+

This community is for professional and enthusiast users, partners and programmers. You can ask questions about:

+
    +
  • how to install Odoo on a specific infrastructure,
  • +
  • how to configure or customize Odoo to specific business needs,
  • +
  • what's the best way to use Odoo for a specific business need,
  • +
  • how to develop modules for your own need,
  • +
  • specific questions about Odoo service offers, etc.
  • +
+

Before you ask - please make sure to search for a similar question. You can search questions by their title or tags. It’s also OK to answer your own question.

+

Please avoid asking questions that are too subjective and argumentative or not relevant to this community.

+
+
+
+
+ +
+
+

You should only ask practical, answerable questions based on actual problems that you face. Chatty, open-ended questions diminish the usefulness of this site and push other questions off the front page.

+

To prevent your question from being flagged and possibly removed, avoid asking subjective questions where …

+
    +
  • every answer is equally valid: “What’s your favorite ______?”
  • +
  • your answer is provided along with the question, and you expect more answers: “I use ______ for ______, what do you use?”
  • +
  • there is no actual problem to be solved: “I’m curious if other people feel like I do.”
  • +
  • we are being asked an open-ended, hypothetical question: “What if ______ happened?”
  • +
  • it is a rant disguised as a question: “______ sucks, am I right?”
  • +
+

If you fit in one of these example or if your motivation for asking the question is “I would like to participate in a discussion about ______”, then you should not be asking here but on our mailing lists. However, if your motivation is “I would like others to explain ______ to me”, then you are probably OK.

+

(The above section was adapted from Stackoverflow’s FAQ.)

+

More over:

+
    +
  • Answers should not add or expand questions. Instead either edit the question or add a question comment.
  • +
  • Answers should not comment other answers. Instead add a comment on the other answers.
  • +
  • Answers shouldn't just point to other Questions. Instead add a question comment indication "Possible duplicate of...". However, it's ok to include links to other questions or answers providing relevant additional information.
  • +
  • Answers shouldn't just provide a link a solution. Instead provide the solution description text in your answer, even if it's just a copy/paste. Links are welcome, but should be complementary to answer, referring sources or additional reading.
  • +
+
+
+
+
+ +
+
+

Answers should not add or expand questions. Insteadeither edit the question or add a comment.

+

Answers should not comment other answers. Instead add a comment on the other answers.

+

Answers shouldn't just point to other questions.Instead add a comment indicating "Possible duplicate of...". However, it's fine to include links to other questions or answers providing relevant additional information.

+

Answers shouldn't just provide a link a solution. Instead provide the solution description text in your answer, even if it's just a copy/paste. Links are welcome, but should be complementary to answer, referring sources or additional reading.

+

Answers should not start debates This community Q&A is not a discussion group. Please avoid holding debates in your answers as they tend to dilute the essence of questions and answers. For brief discussions please use commenting facility.

+

When a question or answer is upvoted, the user who posted them will gain some points, which are called "karma points". These points serve as a rough measure of the community trust to him/her. Various moderation tasks are gradually assigned to the users based on those points.

+

For example, if you ask an interesting question or give a helpful answer, your input will be upvoted. On the other hand if the answer is misleading - it will be downvoted. Each vote in favor will generate 10 points, each vote against will subtract 10 points. There is a limit of 200 points that can be accumulated for a question or answer per day. The table given at the end explains reputation point requirements for each type of moderation task.

+
+
+
+
+ +
+
+

The goal of this site is create a relevant knowledge base that would answer questions related to Odoo.

+

Therefore questions and answers can be edited like wiki pages by experienced users of this site in order to improve the overall quality of the knowledge base content. Such privileges are granted based on user karma level: you will be able to do the same once your karma gets high enough.

+

If this approach is not for you, please respect the community.

+ Here a table with the privileges and the karma level +
+
+
+
+
+
+
+
+
+
\ No newline at end of file diff --git a/addons/website_forum/data/forum_demo.xml b/addons/website_forum/data/forum_demo.xml new file mode 100644 index 00000000..041ef4c8 --- /dev/null +++ b/addons/website_forum/data/forum_demo.xml @@ -0,0 +1,90 @@ + + + + + + + + + Contract + + + + Action + + + + ecommerce + + + + Development + + + + + + How to configure alerts for employee contract expiration + + 3 + + + + + + CMS replacement for ERP and eCommerce + 8 + + + + I use Wordpress as a CMS and eCommerce platform. The developing in Wordpress is quite easy and solid but it missing ERP feature (there is single plugin to integrate with Frontaccounting) so I wonder: + +Can I use Odoo as a replacement CMS of Wordpress + eCommerce plugin? + +In simple words does Odoo became CMS+ERP platform?

]]>
+ +
+ + + + + Re: How to configure alerts for employee contract expiration + 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.

+
    +
  • 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. +
  • Step 2. Go to Server Actions and create new Action. Call it Fleet Contract Expiration Warning. The Object will be the same as above .. Contract information on a vehicle. The Action Type is Email. For email address I just put my email. Under subject put in... [[object.name]]. This will tell you the name of the car. Message you can put any text message you like. Now save the Server Action.
  • +
  • Step 3. Now go back to the Automated Action you created and go to the Action tab next to the conditions tab. Click Add and add the server action you created . In this case Fleet Contract Expiration Warning. Then Save.
  • +
  • Step 4. To test, set a contract to expire tomorrow under one of your fleets vehicles. Then Save it.
  • +
  • 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.
]]>
+ +
+ + + Re: CMS replacement for ERP and eCommerce + 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. +

]]>
+ +
+ + + + + + 1 + + + + + 1 + + + + + + + + +
+
-- cgit v1.2.3