summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/solr/x_manufactures.py
diff options
context:
space:
mode:
Diffstat (limited to 'indoteknik_custom/models/solr/x_manufactures.py')
-rw-r--r--indoteknik_custom/models/solr/x_manufactures.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/indoteknik_custom/models/solr/x_manufactures.py b/indoteknik_custom/models/solr/x_manufactures.py
index c0c321e4..375b7708 100644
--- a/indoteknik_custom/models/solr/x_manufactures.py
+++ b/indoteknik_custom/models/solr/x_manufactures.py
@@ -44,10 +44,11 @@ class XManufactures(models.Model):
'sequence_i': brands.sequence or '',
'negara_asal_s': brands.x_negara_asal or '',
'short_desc_s': brands.x_short_desc or '',
+ 'level_s': brands.x_manufacture_level or '',
'image_s': self.env['ir.attachment'].api_image('x_manufactures', 'x_logo_manufacture', brands.id),
'produk_aksesoris_sparepart_s': brands.x_produk_aksesoris_sparepart or '',
- 'categories': [x.id for x in brands.category_ids],
- 'banners': [x.id for x in brands.x_manufactures_banners],
+ 'category_ids': [x.id for x in brands.category_ids],
+ 'banner_ids': [x.id for x in brands.x_manufactures_banners],
})
self.solr().add([document])
brands.update_last_update_solr()