From 447b8587ff5203e7ee0b27967bf27d2e4bf9ab48 Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Mon, 25 Sep 2023 09:46:48 +0700 Subject: add attribute account move line user can't create analytic tags on line, add level to manufacture solr --- indoteknik_custom/models/solr/apache_solr.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'indoteknik_custom/models/solr/apache_solr.py') diff --git a/indoteknik_custom/models/solr/apache_solr.py b/indoteknik_custom/models/solr/apache_solr.py index eb02cb57..5acfded8 100644 --- a/indoteknik_custom/models/solr/apache_solr.py +++ b/indoteknik_custom/models/solr/apache_solr.py @@ -213,6 +213,8 @@ class ApacheSolr(models.Model): end_time = time.time() _logger.info("[SYNC_PRODUCT_TO_SOLR] Finish task add to solr. Time taken: {:.6f} seconds".format(end_time - start_time)) + return True + def _test_product_price(self, product_id=228178): product = self.env['product.product'].search([('id', '=', product_id)], limit=1) _logger.info('price incl tax: %s' % product._get_website_price_include_tax()) @@ -287,3 +289,5 @@ class ApacheSolr(models.Model): _variants_solr.add(documents) end_time = time.time() _logger.info("[SYNC_VARIANTS_TO_SOLR] Finish task add to solr. Time taken: {:.6f} seconds".format(end_time - start_time)) + + return False -- cgit v1.2.3