summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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