summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/web_logging/web_utm_source.py
diff options
context:
space:
mode:
authorRafi Zadanly <zadanlyr@gmail.com>2024-03-01 13:44:14 +0700
committerRafi Zadanly <zadanlyr@gmail.com>2024-03-01 13:44:14 +0700
commit388ea472f3913accd9e962f7f5c592860be98488 (patch)
tree6b8a86ee4b6b08fd038942983715d1f8c2e0f63c /indoteknik_custom/models/web_logging/web_utm_source.py
parent57212906857d615c5c48e974bb56e3ce878e5ac4 (diff)
Add relation utm source to activity
Diffstat (limited to 'indoteknik_custom/models/web_logging/web_utm_source.py')
-rw-r--r--indoteknik_custom/models/web_logging/web_utm_source.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/indoteknik_custom/models/web_logging/web_utm_source.py b/indoteknik_custom/models/web_logging/web_utm_source.py
index 08b1e514..31e36dd6 100644
--- a/indoteknik_custom/models/web_logging/web_utm_source.py
+++ b/indoteknik_custom/models/web_logging/web_utm_source.py
@@ -6,6 +6,7 @@ class UserActivityLog(models.Model):
name = fields.Char(string='Name')
key = fields.Char(string='Key')
+ activity_ids = fields.One2many('user.activity.log', 'utm_source_id', string='Activity')
def find_or_create_key(self, key):
utm_source = self.search([('key', '=', key)], limit=1)