[FIX] project_issue: convert to a bug if there is no category in the custom values

bzr revid: stw@openerp.com-20120403102213-l43ydt4efb92cmaz
This commit is contained in:
Stephane Wirtel 2012-04-03 12:22:13 +02:00
parent 636a7796f7
commit 1e2bdc468c
1 changed files with 2 additions and 1 deletions

View File

@ -433,7 +433,8 @@ class project_issue(crm.crm_case, osv.osv):
res_id = self.create(cr, uid, vals, context)
self.message_append_dict(cr, uid, [res_id], msg, context=context)
self.convert_to_bug(cr, uid, [res_id], context=context)
if 'categ_id' not in vals:
self.convert_to_bug(cr, uid, [res_id], context=context)
return res_id
def message_update(self, cr, uid, ids, msg, vals=None, default_act='pending', context=None):