[FIX] phonecalls to invoice

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

bzr revid: api@openerp.com-20121113153216-n22f5kponm0xb4fq
This commit is contained in:
Arnaud Pineux 2012-11-13 16:32:16 +01:00
commit 866956daa6
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')