summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/keywords.py
diff options
context:
space:
mode:
authorMqdd <ahmadmiqdad27@gmail.com>2026-02-24 09:56:19 +0700
committerMqdd <ahmadmiqdad27@gmail.com>2026-02-24 09:56:19 +0700
commit79471b69ffc683c3c860ecd6456f638750a8c81f (patch)
tree9b62c70550376310e7d10a146d0687c021f69f90 /indoteknik_custom/models/keywords.py
parentb468da04ba901590b764694bfdd47366bc649dab (diff)
<Miqdad> kartu stock
Diffstat (limited to 'indoteknik_custom/models/keywords.py')
-rw-r--r--indoteknik_custom/models/keywords.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/keywords.py b/indoteknik_custom/models/keywords.py
index 4ab649dc..5b7da705 100644
--- a/indoteknik_custom/models/keywords.py
+++ b/indoteknik_custom/models/keywords.py
@@ -225,7 +225,7 @@ class Keywords(models.Model):
tracked_fields = ['keywords', 'category_id', 'product_ids']
neded_sync = any(field in vals for field in tracked_fields)
- if neded_sync and self.skip == False:
+ if neded_sync and self.skip == False and len(self.product_ids) > 0:
for record in self:
record.solr_flag = 2