openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #23058
[Bug 1117066] Re: [CRM] traceback when converting a lead that doesn't exist anymore
Hello Gilles,
I have checked your issue with latest trunk as well as with 7.0. And as
per your define steps I do, But I am facing another traceback , Which is
below:
OpenERP Server Error
Client Traceback (most recent call last):
File "/home/odoo/runbot/static/openerp-dev-7-0-3073/server/openerp/addons/web/http.py", line 195, in dispatch
response["result"] = method(self, **self.params)
File "/home/odoo/runbot/static/openerp-dev-7-0-3073/server/openerp/addons/web/controllers/main.py", line 1082, in call_button
action = self._call_kw(req, model, method, args, {})
File "/home/odoo/runbot/static/openerp-dev-7-0-3073/server/openerp/addons/web/controllers/main.py", line 1070, in _call_kw
return getattr(req.session.model(model), method)(*args, **kwargs)
File "/home/odoo/runbot/static/openerp-dev-7-0-3073/server/openerp/addons/web/session.py", line 43, in proxy
result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw)
File "/home/odoo/runbot/static/openerp-dev-7-0-3073/server/openerp/addons/web/session.py", line 31, in proxy_method
result = self.session.send(self.service_name, method, *args)
File "/home/odoo/runbot/static/openerp-dev-7-0-3073/server/openerp/addons/web/session.py", line 104, in send
raise xmlrpclib.Fault(openerp.tools.ustr(e), formatted_info)
Server Traceback (most recent call last):
File "/home/odoo/runbot/static/openerp-dev-7-0-3073/server/openerp/addons/web/session.py", line 90, in send
return openerp.netsvc.dispatch_rpc(service_name, method, args)
File "/home/odoo/runbot/static/openerp-dev-7-0-3073/server/openerp/netsvc.py", line 289, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/home/odoo/runbot/static/openerp-dev-7-0-3073/server/openerp/service/web_services.py", line 614, in dispatch
res = fn(db, uid, *params)
File "/home/odoo/runbot/static/openerp-dev-7-0-3073/server/openerp/osv/osv.py", line 169, in execute_kw
return self.execute(db, uid, obj, method, *args, **kw or {})
File "/home/odoo/runbot/static/openerp-dev-7-0-3073/server/openerp/osv/osv.py", line 123, in wrapper
return f(self, dbname, *args, **kwargs)
File "/home/odoo/runbot/static/openerp-dev-7-0-3073/server/openerp/osv/osv.py", line 179, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/odoo/runbot/static/openerp-dev-7-0-3073/server/openerp/addons/audittrail/audittrail.py", line 514, in execute_cr
return fct_src(cr, uid, model, method, *args, **kw)
File "/home/odoo/runbot/static/openerp-dev-7-0-3073/server/openerp/osv/osv.py", line 166, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/odoo/runbot/static/openerp-dev-7-0-3073/server/openerp/addons/crm/wizard/crm_lead_to_opportunity.py", line 129, in action_apply
self._convert_opportunity(cr, uid, ids, {'lead_ids': lead_ids}, context=context)
File "/home/odoo/runbot/static/openerp-dev-7-0-3073/server/openerp/addons/crm/wizard/crm_lead_to_opportunity.py", line 97, in _convert_opportunity
partner_ids_map = self._create_partner(cr, uid, ids, context=context)
File "/home/odoo/runbot/static/openerp-dev-7-0-3073/server/openerp/addons/crm/wizard/crm_lead_to_opportunity.py", line 147, in _create_partner
return lead.handle_partner_assignation(cr, uid, lead_ids, data.action, partner_id, context=context)
File "/home/odoo/runbot/static/openerp-dev-7-0-3073/server/openerp/addons/crm/crm_lead.py", line 775, in handle_partner_assignation
partner_id = force_partner_id or self._create_lead_partner(cr, uid, lead, context)
File "/home/odoo/runbot/static/openerp-dev-7-0-3073/server/openerp/addons/crm/crm_lead.py", line 731, in _create_lead_partner
partner_id = self._lead_create_contact(cr, uid, lead, contact_name, False, context=context)
File "/home/odoo/runbot/static/openerp-dev-7-0-3073/server/openerp/addons/crm/crm_lead.py", line 704, in _lead_create_contact
'email': lead.email_from and tools.email_split(lead.email_from)[0],
IndexError: list index out of range
So, Would you please check it with latest and notify me that , Is it
same traceback or else so, after that I can confirm this issue.
Thanks,
waiting for your replay..
** Changed in: openobject-addons
Status: New => Incomplete
--
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/1117066
Title:
[CRM] traceback when converting a lead that doesn't exist anymore
Status in OpenERP Addons (modules):
Incomplete
Bug description:
1. install CRM
2. create a lead
3. convert to opp
4. use back arrow to go back to the document
5. convert to opp again
traceback:
le "/home/odoo/runbot/static/openerp-dev-7-0-2994/server/openerp/addons/crm/crm_lead.py", line 652, in merge_opportunity
oldest = self._merge_find_oldest(cr, uid, ids, context=context)
File "/home/odoo/runbot/static/openerp-dev-7-0-2994/server/openerp/addons/crm/crm_lead.py", line 541, in _merge_find_oldest
oldest_opp_id = opportuity_ids[0]
IndexError: list index out of range
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1117066/+subscriptions
References