summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-11-18 17:35:23 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-11-18 17:35:23 +0700
commit9d7433af4ff86d2b212965e646eb0461bf3729e9 (patch)
treea02b5c58cb965348059ffe569da224fefb9dee87
parent5d29ddf74f982a686b6dfec2381162a0c5ed4c7c (diff)
change bug search rank product
-rwxr-xr-xindoteknik_custom/models/user_activity_log.py2
1 files changed, 1 insertions, 1 deletions
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