summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/solr/promotion_program_line.py
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2024-04-29 06:30:50 +0000
committerIT Fixcomart <it@fixcomart.co.id>2024-04-29 06:30:50 +0000
commit1c0c7be74b11371299bead2626840b3ebc2632f7 (patch)
tree14e43d531e420cedb3f69956c2e5b75e81a2345e /indoteknik_custom/models/solr/promotion_program_line.py
parent09c3b3a6a706d176f61bf89fc7acb690650b528c (diff)
parenta5727ae0dd3f82bf22b888125d924520833838b4 (diff)
Merged in feature/request-by-abl (pull request #140)
Feature/request by abl
Diffstat (limited to 'indoteknik_custom/models/solr/promotion_program_line.py')
-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