Here's my model :
from openerp import models, fields, api, tools class Searches(models.Model): _name = 'user.search' search = fields.Char('Searches made by users',required=True) nb_searches = fields.Integer('Number of searches for this phrase',required=True) def a_function(sef,cr,uid,context=None): return None
And when I try to search in it :
self.search(cr, uid, [])
I've got the following error :
AttributeError: 'user.search' object has no attribute '_ids'
What's wrong ? The user_search table have an 'id' attribute ... I don't what what I did wrong.