[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
This commit is contained in:
parent
5796ca4b1f
commit
5c091dd8e2
|
@ -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 = {}
|
||||
|
|
Loading…
Reference in New Issue