diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2025-08-19 09:30:43 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2025-08-19 09:30:43 +0700 |
| commit | 1e4cd196b7b41a38ee5f974667c421ae53c8e52f (patch) | |
| tree | 41195b69ddeb5b6ea0079dc4ed36b7683022b6ea /indoteknik_custom | |
| parent | f4f55acddc7d5b071289095b139614acce35308c (diff) | |
add logger
Diffstat (limited to 'indoteknik_custom')
| -rw-r--r-- | indoteknik_custom/models/solr/product_template.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/indoteknik_custom/models/solr/product_template.py b/indoteknik_custom/models/solr/product_template.py index e362626b..b1c6654b 100644 --- a/indoteknik_custom/models/solr/product_template.py +++ b/indoteknik_custom/models/solr/product_template.py @@ -2,6 +2,9 @@ from datetime import datetime from bs4 import BeautifulSoup from odoo import api, fields, models +import logging + +_logger = logging.getLogger(__name__) class ProductTemplate(models.Model): @@ -132,6 +135,8 @@ class ProductTemplate(models.Model): "voucher_max_discount_f" : voucher.max_discount_amount or 0 }) + _logger.info(document) + self.solr().add(docs=[document], softCommit=True) products = self.env['product.product'].search([ ('product_tmpl_id', '=', template.id), |
