From 5c091dd8e2ee04fd903c7ef9d1893bc71ae9bd2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Thu, 28 Mar 2013 10:23:57 +0100 Subject: [PATCH] [CLEAN] BaseModel: moved get_empty_list_help method to a better place in the code; added some comments. bzr revid: tde@openerp.com-20130328092357-v3grmw9brp9wtfj0 --- openerp/osv/orm.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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 = {}