diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2024-04-29 06:30:50 +0000 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2024-04-29 06:30:50 +0000 |
| commit | 1c0c7be74b11371299bead2626840b3ebc2632f7 (patch) | |
| tree | 14e43d531e420cedb3f69956c2e5b75e81a2345e /indoteknik_custom/models/solr/promotion_program_line.py | |
| parent | 09c3b3a6a706d176f61bf89fc7acb690650b528c (diff) | |
| parent | a5727ae0dd3f82bf22b888125d924520833838b4 (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.py | 5 |
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 |
