[FIX]base:fix the issue convert to quote is not working via Scheduled Calls

lp bug: https://launchpad.net/bugs/1017353 fixed

bzr revid: mma@tinyerp.com-20120625065109-5ciy82syodgtbcg9
This commit is contained in:
Mayur Maheshwari (OpenERP) 2012-06-25 12:21:09 +05:30
parent 0a22debf5f
commit 4a8e00cac7
1 changed files with 3 additions and 1 deletions

View File

@ -64,7 +64,9 @@ class crm_make_sale(osv.osv_memory):
"""
if context is None:
context = {}
# update context: if come from phonecall, default state values can make the quote crash lp:1017353
context.pop('default_state', False)
case_obj = self.pool.get('crm.lead')
sale_obj = self.pool.get('sale.order')
partner_obj = self.pool.get('res.partner')