diff --git a/openerp/osv/orm.py b/openerp/osv/orm.py index aa02242570b..b930bd3b5f7 100644 --- a/openerp/osv/orm.py +++ b/openerp/osv/orm.py @@ -3538,6 +3538,14 @@ class BaseModel(object): return res + def get_empty_list_help(self, cr, user, help, context=None): + """ Generic method giving the help message displayed when having + no result to display in a list or kanban view. By default it returns + the help given in parameter that is generally the help message + defined in the action. + """ + return help + def check_field_access_rights(self, cr, user, operation, fields, context=None): """ Check the user access rights on the given fields. This raises Access @@ -3604,9 +3612,6 @@ class BaseModel(object): return result and result[0] or False return result - 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'): if not context: context = {}