In document module, _child_get function returns directory nodes. does not have any function which returns only directory names.
and your case, you have name field as a date. so DMS try to search node with where condition : [('name','like','2009-07-17')]. and sql try to find record in database. and it see name is date field. so it give error. so I do not think, your problem will be solve after overwrite name_get method.
or
you can add one field 'dirname' (char or function field ) in your model.
but I would like to correct this problem in document module. : use '=' operator instead of 'like' operator. so sql can search record like : [('name','=','2009-07-17')]
In document module, _child_get function returns directory nodes. does not have any function which returns only directory names.
and your case, you have name field as a date. so DMS try to search node with where condition : [('name' ,'like' ,'2009- 07-17') ]. and sql try to find record in database. and it see name is date field. so it give error. so I do not think, your problem will be solve after overwrite name_get method.
or
you can add one field 'dirname' (char or function field ) in your model.
but I would like to correct this problem in document module. : use '=' operator instead of 'like' operator. so sql can search record like : [('name' ,'=','2009- 07-17') ]