openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #21376
[Bug 1096218] Re: 7.0 survey - invitation error
Hello,
I've the same problem (error)
I noticed this error last week while sending an quote by email, the
error appeared when the email is created and noticed that the attachment
wasn't available in the email editor.
Than I've tried to upload a pdf in the knowledge addon and get the same
error. When I tried to upload a txt, xls or other file type it is
working. When I try to upload a pdf I get the same error.
Updated to the latest 7.0 didn't solved my problem.
Strange is that when I try it in our development environment (which has
the same version) I haven't got this issue. I think it is a problem with
indexing the pdf file. But I'm not sure if this also the case when you
try to send a quote by email.
Btw, when I print the quote instead of sending the email I get my pdf,
so the creation of the pdf is working I think.
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1096218
Title:
7.0 survey - invitation error
Status in OpenERP Addons (modules):
Incomplete
Bug description:
OpenERP Server Error
Client Traceback (most recent call last):
File "/home/openerp/instances/openerp_prod_70/src/server/openerp/addons/web/http.py", line 195, in dispatch
response["result"] = method(self, **self.params)
File "/home/openerp/instances/openerp_prod_70/src/server/openerp/addons/web/controllers/main.py", line 1082, in call_button
action = self._call_kw(req, model, method, args, {})
File "/home/openerp/instances/openerp_prod_70/src/server/openerp/addons/web/controllers/main.py", line 1070, in _call_kw
return getattr(req.session.model(model), method)(*args, **kwargs)
File "/home/openerp/instances/openerp_prod_70/src/server/openerp/addons/web/session.py", line 40, in proxy
result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw)
File "/home/openerp/instances/openerp_prod_70/src/server/openerp/addons/web/session.py", line 28, in proxy_method
result = self.session.send(self.service_name, method, *args)
File "/home/openerp/instances/openerp_prod_70/src/server/openerp/addons/web/session.py", line 101, in send
raise xmlrpclib.Fault(openerp.tools.exception_to_unicode(e), formatted_info)
Server Traceback (most recent call last):
File "/home/openerp/instances/openerp_prod_70/src/server/openerp/addons/web/session.py", line 87, in send
return openerp.netsvc.dispatch_rpc(service_name, method, args)
File "/home/openerp/instances/openerp_prod_70/src/server/openerp/netsvc.py", line 289, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/home/openerp/instances/openerp_prod_70/src/server/openerp/service/web_services.py", line 614, in dispatch
res = fn(db, uid, *params)
File "/home/openerp/instances/openerp_prod_70/src/server/openerp/osv/osv.py", line 169, in execute_kw
return self.execute(db, uid, obj, method, *args, **kw or {})
File "/home/openerp/instances/openerp_prod_70/src/server/openerp/osv/osv.py", line 123, in wrapper
return f(self, dbname, *args, **kwargs)
File "/home/openerp/instances/openerp_prod_70/src/server/openerp/osv/osv.py", line 179, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/openerp/instances/openerp_prod_70/src/addons/audittrail/audittrail.py", line 514, in execute_cr
return fct_src(cr, uid, model, method, *args, **kw)
File "/home/openerp/instances/openerp_prod_70/src/server/openerp/osv/osv.py", line 166, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/openerp/instances/openerp_prod_70/src/addons/survey/wizard/survey_send_invitation.py", line 183, in action_send
ans = self.pool.get('mail.mail').create(cr, uid, vals, context=context)
File "/home/openerp/instances/openerp_prod_70/src/addons/fetchmail/fetchmail.py", line 250, in create
res = super(mail_mail, self).create(cr, uid, values, context=context)
File "/home/openerp/instances/openerp_prod_70/src/addons/mail/mail_mail.py", line 81, in create
return super(mail_mail, self).create(cr, uid, values, context=context)
File "/home/openerp/instances/openerp_prod_70/src/server/openerp/osv/orm.py", line 4365, in create
record_id = self.pool.get(table).create(cr, user, tocreate[table], context=parent_context)
File "/home/openerp/instances/openerp_prod_70/src/addons/mail/mail_message.py", line 738, in create
newid = super(mail_message, self).create(cr, uid, values, context)
File "/home/openerp/instances/openerp_prod_70/src/server/openerp/osv/orm.py", line 4472, in create
result += self._columns[field].set(cr, self, id_new, field, vals[field], user, rel_context) or []
File "/home/openerp/instances/openerp_prod_70/src/server/openerp/osv/fields.py", line 748, in set
idnew = obj.create(cr, user, act[2], context=context)
File "/home/openerp/instances/openerp_prod_70/src/addons/document/document.py", line 121, in create
vals['file_type'], vals['index_content'] = self._index(cr, uid, vals['datas'].decode('base64'), vals.get('datas_fname', False), None)
File "/home/openerp/instances/openerp_prod_70/src/addons/document/document.py", line 132, in _index
mime, icont = cntIndex.doIndex(data, datas_fname, file_type or None, None)
TypeError: 'NoneType' object is not iterable
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1096218/+subscriptions
References