[IMP] CRM: set the domain for object_id in next button

bzr revid: sbh@tinyerp.com-20100119063504-lqktwfzzibza7bin
This commit is contained in:
sbh (Open ERP)
2010-01-19 12:05:04 +05:30
parent 22c1154ae9
commit 30f00dd8a6
+1 -1
View File
@@ -388,7 +388,7 @@ class crm_case(osv.osv):
def stage_next(self, cr, uid, ids, context={}):
ok = False
sid = self.pool.get('crm.case.stage').search(cr, uid, [], context=context)
sid = self.pool.get('crm.case.stage').search(cr, uid, [('object_id.model', '=', self._name)], context=context)
s = {}
previous = {}
for stage in self.pool.get('crm.case.stage').browse(cr, uid, sid, context=context):