From b5abfdcc7165248e7f91bf1efad63d2844c813d1 Mon Sep 17 00:00:00 2001 From: "Turkesh Patel (Open ERP)" Date: Tue, 25 Feb 2014 15:28:45 +0530 Subject: [PATCH] [ADD] add template to post answer and improved demo data of answers. bzr revid: tpa@tinyerp.com-20140225095845-swmojhdo31t871pp --- addons/website_forum/controllers/main.py | 8 ++-- addons/website_forum/data/forum_demo.xml | 20 ++++---- addons/website_forum/views/website_forum.xml | 49 ++++++++++++++++++-- 3 files changed, 58 insertions(+), 19 deletions(-) diff --git a/addons/website_forum/controllers/main.py b/addons/website_forum/controllers/main.py index 1faafc2c7f1..d8112cccd56 100644 --- a/addons/website_forum/controllers/main.py +++ b/addons/website_forum/controllers/main.py @@ -113,11 +113,9 @@ class website_forum(http.Controller): create_context = dict(context) new_question_id = request.registry['website.forum.post'].create( request.cr, request.uid, { - 'forum_id': forum_id, - 'parent_id':post_id, - 'name': question.get('name'), - 'content': question.get('content'), - 'tags' : question.get('tags'), + #'forum_id': forum_id, + 'parent_id': post_id, + 'content': question.get('answer_content'), 'state': 'active', 'active': True, }, context=create_context) diff --git a/addons/website_forum/data/forum_demo.xml b/addons/website_forum/data/forum_demo.xml index 182fb9c40a2..0d08c597b13 100644 --- a/addons/website_forum/data/forum_demo.xml +++ b/addons/website_forum/data/forum_demo.xml @@ -135,7 +135,7 @@ Thank you in advance - 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. + 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. @@ -147,7 +147,7 @@ Thank you in advance - Hello everybody, + Hello everybody, I use a XML-RPC to access to invoices, I want to get the states of invoices, but always I get paid instead of PayƩ (French) I use administrator to connect to the databse, he has as lang = 'fr_FR' def _get_invoice_states(self, cr, uid, ids, field_name, args, context=None): @@ -167,7 +167,7 @@ Thank you in advance - Yes you could download the module from internet on another + Yes you could download the module from internet on another computer and unzip the file on the ERP server. Then you have to activate the module, see the tutorial on acespritechblog.wordpress.com (sorry I cannot post the full link) @@ -175,14 +175,14 @@ Thank you in advance - OpenERP v8 (next release) provides a web module and an e-commerce module: www.openerp.com/website_cms + OpenERP v8 (next release) provides a web module and an e-commerce module: www.openerp.com/website_cms The CMS editor in OpernERP web is nice but I prefer drupal for customization and there is a drupal module for OpenERP. I think WP is better than OpenERP web too. - + no need to inherit account.voucher. after creating the account.voucher record, you just add this in your XMLRPC script. self.sock.execute(self.dbname, self.uid, self.pwd, 'account.voucher', @@ -194,7 +194,7 @@ Thank you in advance - + I had the same issue and in my case I needed to remove the field "move_id" from account.voucher and adding the field "move_line_id" to account.voucher.line, have you tried that? move_line_id should match the ID of the account.move.line whose "move_id" field matches the "move_id" field of the invoice you created @@ -209,7 +209,7 @@ Thank you in advance - + Step 1: First make sure the CRM module is installed. If it isnt then you can click on the CRM module in the applications view. Step 2: Go to Settings -> Configuration -> General Settings and check the "Allow users to import data from CSV files" checkbox @@ -231,7 +231,7 @@ Thank you in advance - + Hello, Email outgoing server can be configured in: Settings >> General Settings >> Email >> Outgoing mail server. SMTP Server: Your SMTP server address @@ -243,14 +243,14 @@ Thank you in advance - + also settings-> update moduel list? can find this anywhere?? - + Give your admin user the technical features right and you will be able to see more options in the settings menu. (use a refresh) diff --git a/addons/website_forum/views/website_forum.xml b/addons/website_forum/views/website_forum.xml index 6d31b30bb13..896d27542d6 100644 --- a/addons/website_forum/views/website_forum.xml +++ b/addons/website_forum/views/website_forum.xml @@ -129,21 +129,21 @@
  • - +

    - +

    - +
    - +
  • @@ -358,6 +358,46 @@ +