From 063033f2c3d6729049501b8a8ac262f3864b8177 Mon Sep 17 00:00:00 2001 From: PicchiSeba Date: Tue, 10 Sep 2024 13:01:25 +0200 Subject: [PATCH] [IMP]shopinvader_search_engine: show elasticsearch 'Already cleared' message --- shopinvader_search_engine/models/shopinvader_backend.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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")