Comment 4 for bug 1267845

Revision history for this message
Yann Papouin (yann-papouin) wrote :

Thanks Pedro for your module, but that's not the behaviour I was looking for.

Personally, I think that anything done into name_get must be undone in name_search since their behaviours are inter-connected:
- If the product name_get adds brackets in name_get they must be removed before search in name_search
- If the category name_get adds slashes in name_get they must be removed before search in name_search

Please note that OpenERP SA already did this for product but only when both brackets are there, I'm just extending their process by removing extra brackets. And since nothing exists for product category, I implemented the same process there.

Note that this change should allow to fix one of my old bug report:
https://bugs.launchpad.net/openobject-server/+bug/812340