[IMP]remove unnecessary check on ids

bzr revid: jpr@tinyerp.com-20140506083630-i1o5flr7p8apgrym
This commit is contained in:
Jitendra Prajapati (OpenERP) 2014-05-06 14:06:30 +05:30
parent 1bb22f2ddd
commit d5e9847b0d
3 changed files with 0 additions and 6 deletions

View File

@ -1058,8 +1058,6 @@ Launch Manually Once: after having been launched manually, it sets automatically
_order="sequence,id"
def name_get(self, cr, uid, ids, context=None):
if not ids:
return []
return [(rec.id, rec.action_id.name) for rec in self.browse(cr, uid, ids, context=context)]
def action_launch(self, cr, uid, ids, context=None):

View File

@ -69,8 +69,6 @@ class view_custom(osv.osv):
}
def name_get(self, cr, uid, ids, context=None):
if not ids:
return []
return [(rec.id, rec.user_id.name) for rec in self.browse(cr, uid, ids, context=context)]
def _auto_init(self, cr, context=None):

View File

@ -125,8 +125,6 @@ class wkf_transition(osv.osv):
}
def name_get(self, cr, uid, ids, context=None):
if not ids:
return []
return [(line.id, (line.act_from.name) + '+' + (line.act_to.name)) if line.signal == False else (line.id, line.signal) for line in self.browse(cr, uid, ids, context=context)]
wkf_transition()