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