diff --git a/shopinvader_search_engine/models/shopinvader_backend.py b/shopinvader_search_engine/models/shopinvader_backend.py index b1fe0200a9..89e25a85bb 100644 --- a/shopinvader_search_engine/models/shopinvader_backend.py +++ b/shopinvader_search_engine/models/shopinvader_backend.py @@ -36,9 +36,10 @@ def force_batch_export_index(self): return True def clear_index(self): + msg = False for index in self.mapped("se_backend_id.index_ids"): - index.clear_index() - return True + msg = index.clear_index() + return msg def add_missing_index(self): _logger.warning("DEPRECATED: add_missing_index, use action_add_missing_indexes")