Comment 1 for bug 611059

Revision history for this message
JMA(Open ERP) (jma-openerp) wrote : Re: Many2one search doesn't work with integer fields.

Hi Martin,

We confirm the error.
Generally, the standard says that the _rec_name field should always be of type char(string).
This field(if referenced as m2o) is used to represent the record.

If the field is not supposed to be of type char, one should override the name_get() method and return a string that can serve the aim.

There is a fix available, but it is possible that we have to cover all non-char type fields,operators as well.

Hope this helps.
Thanks.