[IMP] code cleaning for get_empty_list_help
authorChristophe Matthieu <chm@openerp.com>
Thu, 21 Mar 2013 13:32:07 +0000 (14:32 +0100)
committerChristophe Matthieu <chm@openerp.com>
Thu, 21 Mar 2013 13:32:07 +0000 (14:32 +0100)
bzr revid: chm@openerp.com-20130321133207-j4tiibjev6lkeuxa

openerp/addons/base/ir/ir_actions.py
openerp/osv/orm.py

index 2c7a074..c3a33ae 100644 (file)
@@ -284,7 +284,7 @@ class act_window(osv.osv):
                     except Exception:
                         continue
                     custom_context = dict(context, **eval_context)
-                    res['help'] = self.pool.get(res.get('res_model')).dynamic_help(cr, uid, res.get('help', ""), context=custom_context)
+                    res['help'] = self.pool.get(res.get('res_model')).get_empty_list_help(cr, uid, res.get('help', ""), context=custom_context)
         
         if u:
             return results[0]
index 24a9248..cd1cd92 100644 (file)
@@ -3604,7 +3604,7 @@ class BaseModel(object):
             return result and result[0] or False
         return result
 
-    def dynamic_help(self, cr, user, help, context=None):
+    def get_empty_list_help(self, cr, user, help, context=None):
         return help
 
     def _read_flat(self, cr, user, ids, fields_to_read, context=None, load='_classic_read'):