bzr revid: fp@tinyerp.com-20121208133604-w17o1fd3gn4uxe1s
This commit is contained in:
Fabien Pinckaers
2012-12-08 14:36:04 +01:00
parent c412faac93
commit 56f5c12020
+1 -1
View File
@@ -199,7 +199,7 @@ class crm_case_categ(osv.osv):
"""Finds id for case object"""
context = context or {}
object_id = context.get('object_id', False)
ids = self.pool.get('ir.model').search(cr, uid, ['|',('id', '=', object_id),('model', '=', context.get('object_name', False)])
ids = self.pool.get('ir.model').search(cr, uid, ['|',('id', '=', object_id),('model', '=', context.get('object_name', False))])
return ids and ids[0] or False
_defaults = {