diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2024-07-18 09:13:42 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2024-07-18 09:13:42 +0700 |
| commit | 1b11e4f636d7d0dbac45a7374bc40c29fa15846d (patch) | |
| tree | 42b1c33757ae52a3591e46635f5ddb3edb697a09 | |
| parent | c142e8391a7f8385ead74e355ceda862b3f7b64b (diff) | |
<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() |
