[FIX] don't search for datas

it doesn't have a search function
This commit is contained in:
Holger Brunn 2015-06-03 09:43:29 +02:00
parent 737469b856
commit c9451cfa56

View File

@ -65,12 +65,12 @@ class IrAttachment(models.Model):
@api.model
def document_reindex_all(self):
return self.document_reindex_domain([('datas', '!=', False)])
return self.document_reindex_domain([('type', '=', 'binary')])
@api.model
def document_reindex_unindexed(self):
return self.document_reindex_domain([
('datas', '!=', False),
('type', '=', 'binary'),
'|',
('index_content', '=', False),
('index_content', '=', ''),