[FIX] ir_model.name_search: was incorrectly relying on name_search implementation details
[FIX] ir_model.name_search: was incorrectly relying on name_search implementation details

As a result, it had been broken by a recent change in the implementation
of Model.name_search().
MarkusTeufelberger/openobject-server,vnc-biz/openerp-server,gisce/openobject-server,MarkusTeufelberger/openobject-server,MarkusTeufelberger/openobject-server,splbio/openobject-server,gisce/openobject-server,ovnicraft/openerp-server,gisce/openobject-server,ovnicraft/openerp-server,splbio/openobject-server,vnc-biz/openerp-server,splbio/openobject-server