[IMP]remove unnecessary check on ids
authorJitendra Prajapati (OpenERP) <jpr@tinyerp.com>
Tue, 6 May 2014 08:36:30 +0000 (14:06 +0530)
committerJitendra Prajapati (OpenERP) <jpr@tinyerp.com>
Tue, 6 May 2014 08:36:30 +0000 (14:06 +0530)
bzr revid: jpr@tinyerp.com-20140506083630-i1o5flr7p8apgrym

openerp/addons/base/ir/ir_actions.py
openerp/addons/base/ir/ir_ui_view.py
openerp/addons/base/workflow/workflow.py

index 5b3dd40..0450086 100644 (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):
index e368498..c9ddc7f 100644 (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):
index 7c53320..3c7e773 100644 (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()