Hello all,
I have installed the module website_crm.
I have put this new form on my website.contactus page.
Now, none message is received. How to receive message sent by public users on the site???
Thanks for your tip
the outgoing mail server is configured.
EDIT #1
I have this code :
from openerp.addons.website_crm.controllers.main import contactus
class contactus_pt(contactus):
_inherit = ['mail.thread']
def create_lead(self, request, values, kwargs):
""" Allow to be overrided """
cr, context = request.cr, request.context
self.message_post(cr, uid, [new_id], body=_("prout prout"), context=ctx) return request.registry['crm.lead'].create(cr, SUPERUSER_ID, values, context=dict(context, mail_create_nosubscribe=True))
I get this error :
AttributeError: 'contactus (extended by contactus_pt)' object has no attribute 'message_post'
I can understand that my code is not still right, but why do I get this error? I have well inherited the mail.thread class no? So I could use message_post? No?