[FIX] website_sale: add the parameter _mail_post_access on product.template

This parameter gives the possibility to post messages en product.template to
people having a read access. The website_sale giving the possibility to post
comments, people not belonging to the 'Sale Manager' group were not able to
post messages.
This commit is contained in:
Martin Trigaux 2014-05-22 12:15:45 +02:00
parent a096ae0080
commit 35a07975de
1 changed files with 1 additions and 0 deletions

View File

@ -33,6 +33,7 @@ class product_template(osv.Model):
_inherit = ["product.template", "website.seo.metadata"]
_order = 'website_published desc, website_sequence desc, name'
_name = 'product.template'
_mail_post_access = 'read'
def _website_url(self, cr, uid, ids, field_name, arg, context=None):
res = dict.fromkeys(ids, '')