[IMP] added record rule to show questions without login, improved demo data.

bzr revid: tpa@tinyerp.com-20140303090616-efn1oy3hzr244egh
This commit is contained in:
Turkesh Patel (Open ERP) 2014-03-03 14:36:16 +05:30
parent 136a060a2d
commit c8385c420f
5 changed files with 29 additions and 15 deletions

View File

@ -39,7 +39,7 @@
<record id="question_1" model="website.forum.post">
<field name="name">How to get translated state through browse ?</field>
<field name="body">Hello everybody,
<field name="content">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)</field>
<field name="views">45</field>
@ -48,14 +48,14 @@ I use a XML-RPC to access to invoices, I want to get the states of invoices, but
<record id="question_2" model="website.forum.post">
<field name="name">Restrain the user from confirming the Purchase requisition</field>
<field name="views">45</field>
<field name="body">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.</field>
<field name="content">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.</field>
<field name="tags" eval="[(4,ref('website_forum.tags_5'))]"/>
</record>
<record id="question_4" model="website.forum.post">
<field name="name">Offline installing for add-ons</field>
<field name="views">45</field>
<field name="body">How can I install web based addons without Internet connections (I'm using OpenERP over LAN)?
<field name="content">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
<record id="question_5" model="website.forum.post">
<field name="name">CMS replacement for ERP and eCommerce</field>
<field name="views">45</field>
<field name="body">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:
<field name="content">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?</field>
<record id="question_6" model="website.forum.post">
<field name="name">Register payment using XMLRPC</field>
<field name="views">45</field>
<field name="body">Hi there,
<field name="content">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:</field>
<record id="question_7" model="website.forum.post">
<field name="name">Create one field on two modules</field>
<field name="views">45</field>
<field name="body">Hello,
<field name="content">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</field>
<record id="question_8" model="website.forum.post">
<field name="name">access rights to one2many field</field>
<field name="views">45</field>
<field name="body">Now i create new group , assign user and access right as READ &amp; CREATE to object stock.picking.ads but nothing is reflected , iam able to delete and write which should not happen. Very Strange!!!</field>
<field name="content">Now i create new group , assign user and access right as READ &amp; CREATE to object stock.picking.ads but nothing is reflected , iam able to delete and write which should not happen. Very Strange!!!</field>
</record>
<record id="question_9" model="website.forum.post">
<field name="name">how to import csv into customer database</field>
<field name="views">45</field>
<field name="body">hi, how to import csv into customer database? Thanks</field>
<field name="content">hi, how to import csv into customer database? Thanks</field>
<field name="tags" eval="[(4,ref('website_forum.tags_2'))]"/>
</record>
<record id="question_10" model="website.forum.post">
<field name="name">send mails not receiving properly</field>
<field name="views">45</field>
<field name="body">Hi, The options for sending mails have been enabled in openerp.
<field name="content">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</field>

View File

@ -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')})

View File

@ -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

1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 access_website_forum_post website.forum.post model_website_forum_post base.group_public 1 0 0 0
3 access_website_forum_post_history website.forum.post.history model_website_forum_post_history base.group_public 1 0 0 0
4 access_website_forum_post_vote website.forum.post.vote model_website_forum_post_vote base.group_public 1 0 0 0
5 access_website_forum_activity website.forum.activity model_website_forum_activity base.group_public 1 0 0 0
6 access_website_forum_tag website.forum.tag model_website_forum_tag base.group_public 1 0 0 0
7

View File

@ -1,6 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
</data>
<data>
<!--TODO: At this time given read acces but need to improve-->
<record model="ir.rule" id="res_partner_public_rule">
<field name="name">res_partner: public</field>
<field name="model_id" ref="base.model_res_partner"/>
<field name="domain_force">[]</field>
<field name="groups" eval="[(4, ref('base.group_public'))]"/>
<field name="perm_create" eval="False"/>
<field name="perm_unlink" eval="False"/>
<field name="perm_write" eval="False"/>
</record>
</data>
</openerp>

View File

@ -120,7 +120,7 @@
<ul class="nav nav-pills">
<li t-att-class=" 'active' if searches.get('type') == str('all') or searches.get('type') == None else '' ">
<a t-attf-href="/forum/?{{ keep_query( type='all') }}">
ALL<t t-esc="searches.get('type')"/>
ALL
</a>
</li>
<li t-att-class=" 'active' if searches.get('type') == str('unanswered') else '' ">