diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2024-07-18 02:16:46 +0000 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2024-07-18 02:16:46 +0000 |
| commit | 22fe8df6b70ed2166e2811b74e1b31cbf3b984cb (patch) | |
| tree | 2ee42a97a168bd5bfc4d73beadb0e284c056482a | |
| parent | 8481061ddebeae1c0f775584fe6ea3852ecf560d (diff) | |
| parent | 1b11e4f636d7d0dbac45a7374bc40c29fa15846d (diff) | |
Merged in feature/iman-categories-homepage (pull request #169)
<iman> update sync to solr
| -rw-r--r-- | indoteknik_custom/models/solr/website_categories_management.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/indoteknik_custom/models/solr/website_categories_management.py b/indoteknik_custom/models/solr/website_categories_management.py index fca01673..15e28df0 100644 --- a/indoteknik_custom/models/solr/website_categories_management.py +++ b/indoteknik_custom/models/solr/website_categories_management.py @@ -30,7 +30,7 @@ class WebsiteCategoriesManagement(models.Model): def _create_solr_queue_sync_status(self): self._create_solr_queue('_sync_status_category_management_solr') - @api.constrains('category_id', 'image', 'url', 'sequence',) + @api.constrains('category_id', 'sequence', 'category_id2') def _create_solr_queue_sync_category_homepage(self): self._create_solr_queue('_sync_category_management_to_solr') @@ -75,12 +75,9 @@ class WebsiteCategoriesManagement(models.Model): 'id': category.id, 'category_id_i': category.category_id.id, 'name_s': category.category_id.name, - 'image_s': self.env['ir.attachment'].api_image('website.categories.management', 'image', category.id), 'sequence_i': category.sequence or '', - 'url_s': category.url or '', 'category_id2': category_id2_data, }) - _logger.info('Category %s synchronized to Solr with document: %s', category.id, json.dumps(document)) self.solr().add([document]) category.update_last_update_solr() |
