mirror of
https://github.com/OCA/knowledge.git
synced 2025-12-22 13:22:19 -06:00
[FIX] don't search for datas
it doesn't have a search function
This commit is contained in:
@@ -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', '=', ''),
|
||||
|
||||
Reference in New Issue
Block a user