From 9d7433af4ff86d2b212965e646eb0461bf3729e9 Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Fri, 18 Nov 2022 17:35:23 +0700 Subject: change bug search rank product --- indoteknik_custom/models/user_activity_log.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indoteknik_custom/models/user_activity_log.py b/indoteknik_custom/models/user_activity_log.py index ab85d47f..97d1684b 100755 --- a/indoteknik_custom/models/user_activity_log.py +++ b/indoteknik_custom/models/user_activity_log.py @@ -43,5 +43,5 @@ class UserActivityLog(models.Model): template = self.env['product.template'].search([ ('id', '=', product_id) ], limit=1) - template.search_rank += int(template.search_rank+1) + template.search_rank = int(template.search_rank) + int(1) activity_log.update_product = True -- cgit v1.2.3