Error converting lead to opportunity
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Steps to reproduce:
1) Create a Lead
2) Open in form view and click the Convert to Opportunity button
3) Select the 'Convert to Opportunity' action in the Select Action dialog. Click Next.
4) Click 'Create Opportunity'.
Expected Behaviour:
Lead converted to Opportunity.
Observed Behaviour:
Backtrace. See below.
Version Observed:
Latest -addons, recent -server.
Environment Information :
System : Linux-2.
OS Name : posix
Distributor ID: Debian
Description: Debian GNU/Linux testing (squeeze)
Release: testing
Codename: squeeze
Operating System Release : 2.6.32-2-amd64
Operating System Version : #1 SMP Fri Feb 12 00:01:47 UTC 2010
Operating System Architecture : 64bit
Operating System Locale : en_GB.UTF8
Python Version : 2.6.6rc1+
OpenERP-Client Version : 6.0dev
Last revision No. & ID :1528 codehost@
Traceback (most recent call last):
File "/home/
result = ExportService.
File "/home/
res = fn(db, uid, *params)
File "/home/
self.
File "/home/
return f(self, dbname, *args, **kwargs)
File "/home/
res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/
lead_
File "/home/
obj.create(cr, uid, data, context=context)
File "/home/
res = super(mailgate_
File "/home/
% (vals[field], field))
except_orm: ('ValidateError', 'The value "lead" for the field "type" is not in the selection')
Related branches
Changed in openobject-addons: | |
status: | New → Confirmed |
I've done some basic debugging, and I believe the problem is that 'default_type' is being passed in the context from action_apply in crm_lead_ to_opportunity. py through to history in mail_gateway.py.
The permissible values for 'type' when the error is thrown are "[('pop', 'POP Server'), ('imap', 'IMAP Server')]". Clearly the two types being talked about are different.