[FIX] crm : change the search condition of crm_case_categ
lp bug: https://launchpad.net/bugs/907510 fixed bzr revid: kjo@tinyerp.com-20111222102053-rrpyuj9jbswjtuyv
This commit is contained in:
+1
-1
@@ -154,7 +154,7 @@ class crm_case_categ(osv.osv):
|
||||
def _find_object_id(self, cr, uid, context=None):
|
||||
"""Finds id for case object"""
|
||||
object_id = context and context.get('object_id', False) or False
|
||||
ids = self.pool.get('ir.model').search(cr, uid, [('model', '=', object_id)])
|
||||
ids = self.pool.get('ir.model').search(cr, uid, [('id', '=', object_id)])
|
||||
return ids and ids[0] or False
|
||||
|
||||
_defaults = {
|
||||
|
||||
Reference in New Issue
Block a user