From 8723715ffd39b8dbabafd24dac8a3149d7744c8b Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 31 Jul 2025 13:01:41 +0200 Subject: 🐛 import: force explicitly geo check on post treatments for complex associations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ishtar_common/models_common.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'ishtar_common/models_common.py') diff --git a/ishtar_common/models_common.py b/ishtar_common/models_common.py index 79aa66953..89471972b 100644 --- a/ishtar_common/models_common.py +++ b/ishtar_common/models_common.py @@ -3374,6 +3374,16 @@ class MainItem(ShortMenuItem, SerializeItem, SheetItem): self._cached_label_checked = False cached_label_changed(self.__class__, instance=self, created=False) + def no_post_process(self, history=False): + if not history: + self.skip_history_when_saving = True + self._cached_label_checked = True + self._post_saved_geo = True + self._external_id_checked = True + self._search_updated = True + self._no_move = True + self._no_down_model_update = True + def post_save_geo(self, save=True): if getattr(self, "_post_saved_geo", False): return -- cgit v1.2.3