[FIX] sale_crm: fixed call to case_close that does not exits anymore; using case_mark_won instead

bzr revid: tde@openerp.com-20130809075213-cffxz6rx8t1s2gq1
This commit is contained in:
Thibault Delavallée 2013-08-09 09:52:13 +02:00
parent 58a755ba2e
commit 769962e5f9
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ class crm_make_sale(osv.osv_memory):
message = _("Opportunity has been <b>converted</b> to the quotation <em>%s</em>.") % (sale_order.name)
case.message_post(body=message)
if make.close:
case_obj.case_close(cr, uid, data)
case_obj.case_mark_won(cr, uid, data, context=context)
if not new_ids:
return {'type': 'ir.actions.act_window_close'}
if len(new_ids)<=1: