summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2024-04-26 09:30:45 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2024-04-26 09:30:45 +0700
commitba40250a928092e06136ac9f40c5be612b0c332e (patch)
tree3a5068e9af021c106d41ff910f9cab1b19c3d79f /indoteknik_custom/models
parentac63ed0d7d13e086dd6bddf02e922bad19d1247a (diff)
parent47043c74e9bc1563052806ffdacf4e12e157890f (diff)
Merge branch 'production' of bitbucket.org:altafixco/indoteknik-addons into production
Diffstat (limited to 'indoteknik_custom/models')
-rw-r--r--indoteknik_custom/models/solr/promotion_program_line.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/indoteknik_custom/models/solr/promotion_program_line.py b/indoteknik_custom/models/solr/promotion_program_line.py
index 9cd226fb..36aea1ed 100644
--- a/indoteknik_custom/models/solr/promotion_program_line.py
+++ b/indoteknik_custom/models/solr/promotion_program_line.py
@@ -75,3 +75,8 @@ class PromotionProgramLine(models.Model):
for record in records:
record._create_solr_queue('_sync_to_solr')
record.solr_flag = 1
+
+ def action_sync_to_solr(self):
+ rec_ids = self.env.context.get('active_ids', [])
+ recs = self.search([('id', 'in', rec_ids)])
+ recs._create_solr_queue('_sync_to_solr') \ No newline at end of file