From c8385c420feb57c2afb8576fc9ea491bb7c1f07a Mon Sep 17 00:00:00 2001 From: "Turkesh Patel (Open ERP)" Date: Mon, 3 Mar 2014 14:36:16 +0530 Subject: [PATCH] [IMP] added record rule to show questions without login, improved demo data. bzr revid: tpa@tinyerp.com-20140303090616-efn1oy3hzr244egh --- addons/website_forum/data/forum_demo.xml | 18 +++++++++--------- addons/website_forum/models/website_forum.py | 4 ++-- .../website_forum/security/ir.model.access.csv | 5 +++++ .../website_forum/security/website_forum.xml | 15 ++++++++++++--- addons/website_forum/views/website_forum.xml | 2 +- 5 files changed, 29 insertions(+), 15 deletions(-) diff --git a/addons/website_forum/data/forum_demo.xml b/addons/website_forum/data/forum_demo.xml index 0d08c597b13..c1e8b8fc458 100644 --- a/addons/website_forum/data/forum_demo.xml +++ b/addons/website_forum/data/forum_demo.xml @@ -39,7 +39,7 @@ How to get translated state through browse ? - 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) 45 @@ -48,14 +48,14 @@ I use a XML-RPC to access to invoices, I want to get the states of invoices, but Restrain the user from confirming the Purchase requisition 45 - Can anybody tell me how to restrict the user from confirming the purchase requisition? In my case when a user is creating a purchase requisition than the user after saving it is able to send it to the supplier rather I want the user to just generate the purchase requisition and let the manager do the remaining works like sending the purchase requisition to the supplier and than receiving the goods. Please help me out. Thanks in advance. + Can anybody tell me how to restrict the user from confirming the purchase requisition? In my case when a user is creating a purchase requisition than the user after saving it is able to send it to the supplier rather I want the user to just generate the purchase requisition and let the manager do the remaining works like sending the purchase requisition to the supplier and than receiving the goods. Please help me out. Thanks in advance. Offline installing for add-ons 45 - How can I install web based addons without Internet connections (I'm using OpenERP over LAN)? + How can I install web based addons without Internet connections (I'm using OpenERP over LAN)? P.S. @@ -66,7 +66,7 @@ BTW, I left OpenERP since ver. 6.x to use PostBooks instead but I recently decid CMS replacement for ERP and eCommerce 45 - I use Wordpress as a CMS and eCommerce platform. The developing in Wordpress is too easy and solid but it missing ERP feature (there is single plugin to integrate with Frontaccounting) so I wonder: + I use Wordpress as a CMS and eCommerce platform. The developing in Wordpress is too easy and solid but it missing ERP feature (there is single plugin to integrate with Frontaccounting) so I wonder: Can I use OpenERP as a replacement CMS of Wordpress + eCommerce plugin? @@ -76,7 +76,7 @@ In simple words does OpenERP became CMS+ERP platform? Register payment using XMLRPC 45 - Hi there, + Hi there, I have been trying to register an invoice payment through OpenERP. I have been able to manually create and approve the invoice, the voucher and its line @@ -86,7 +86,7 @@ I'm currently creating the voucher using this information: Create one field on two modules 45 - Hello, + Hello, I shall like creating a field "x" on an order form ( stock.picking.form ) and to reveal it also on the delivery slip ( stock.picking.form ). @@ -96,20 +96,20 @@ Thank you in advance access rights to one2many field 45 - Now i create new group , assign user and access right as READ & CREATE to object stock.picking.ads but nothing is reflected , iam able to delete and write which should not happen. Very Strange!!! + Now i create new group , assign user and access right as READ & CREATE to object stock.picking.ads but nothing is reflected , iam able to delete and write which should not happen. Very Strange!!! how to import csv into customer database 45 - hi, how to import csv into customer database? Thanks + hi, how to import csv into customer database? Thanks send mails not receiving properly 45 - Hi, The options for sending mails have been enabled in openerp. + Hi, The options for sending mails have been enabled in openerp. There are options to send the invoice,sales order, quotations etc by the email.But the issue is even after the button 'Send By Email' is clicked, the email is not received to the recipients .Those emails are stored in the Archives under the Messaging window.How to configure incoming and outgoing mails in openerp diff --git a/addons/website_forum/models/website_forum.py b/addons/website_forum/models/website_forum.py index 379c952291d..677496ace4b 100644 --- a/addons/website_forum/models/website_forum.py +++ b/addons/website_forum/models/website_forum.py @@ -87,14 +87,14 @@ class Post(osv.Model): } def create_history(self, cr, uid, ids, vals, context=None): - for forum in ids: + for post in ids: history = self.pool.get('website.forum.post.history') if vals.get('content'): create_date = vals.get('create_date') res = { 'name': 'Update %s - %s' % (create_date, vals.get('name')), 'content': vals.get('content', ''), - 'forum_id': forum + 'post_id': post } if vals.get('version'): res.update({'version':vals.get('version')}) diff --git a/addons/website_forum/security/ir.model.access.csv b/addons/website_forum/security/ir.model.access.csv index 08145a00f54..d67152a1979 100644 --- a/addons/website_forum/security/ir.model.access.csv +++ b/addons/website_forum/security/ir.model.access.csv @@ -1,2 +1,7 @@ id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_website_forum_post,website.forum.post,model_website_forum_post,base.group_public,1,0,0,0 +access_website_forum_post_history,website.forum.post.history,model_website_forum_post_history,base.group_public,1,0,0,0 +access_website_forum_post_vote,website.forum.post.vote,model_website_forum_post_vote,base.group_public,1,0,0,0 +access_website_forum_activity,website.forum.activity,model_website_forum_activity,base.group_public,1,0,0,0 +access_website_forum_tag,website.forum.tag,model_website_forum_tag,base.group_public,1,0,0,0 diff --git a/addons/website_forum/security/website_forum.xml b/addons/website_forum/security/website_forum.xml index b3570a73da0..5dd82f1d3ef 100644 --- a/addons/website_forum/security/website_forum.xml +++ b/addons/website_forum/security/website_forum.xml @@ -1,6 +1,15 @@ - - - + + + + res_partner: public + + [] + + + + + + diff --git a/addons/website_forum/views/website_forum.xml b/addons/website_forum/views/website_forum.xml index e93f01f0c7f..3bfcf9ab4de 100644 --- a/addons/website_forum/views/website_forum.xml +++ b/addons/website_forum/views/website_forum.xml @@ -120,7 +120,7 @@