[IMP]remove unnecessary check on ids
bzr revid: jpr@tinyerp.com-20140506083630-i1o5flr7p8apgrym
This commit is contained in:
parent
1bb22f2ddd
commit
d5e9847b0d
|
@ -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):
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue