Skip to content

Commit

Permalink
Merge PR #190 into 14.0
Browse files Browse the repository at this point in the history
Signed-off-by simahawk
  • Loading branch information
OCA-git-bot committed Feb 29, 2024
2 parents 313cb14 + 882bce1 commit f550a88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion connector_search_engine/models/se_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def resynchronize_all_bindings(self):
binding_model = self.env[index.model_id.model]
for index_record in adapter.each():
ext_id = adapter.external_id(index_record)
binding = binding_model.browse(ext_id).exists()
binding = binding_model.search([("record_id", "=", ext_id)], limit=1)
if not binding:
item_ids.append(ext_id)
index.with_delay().delete_obsolete_item(item_ids)
Expand Down

0 comments on commit f550a88

Please sign in to comment.