Comment 2 for bug 1267845

Revision history for this message
Pedro Manuel Baeza (pedro.baeza) wrote :

Hi, Yann, I think you are mixing two concepts: name_get and name_search. Both methods are used with differente purposes: on one hand, name_get retrieves the visible name that the record is going to have got, and on the other, name_search allow to make any query with parameters supplied, and usually returning the output as a list on "name_get records".

On product, name_search allows to search by reference or by name, so you can search entering 'REF' the products REFA and REFB, but '[REF' is not working, because there isn't any reference that contains the bracket.

On category, name_search only searches for the name of the leaf category, which I consider also that is not convenient, but any other thing is a change of behaviour, not a bug. I have made a module that changes this behaviour, which I'm going to attach to this bug.

Regards.