From 388ea472f3913accd9e962f7f5c592860be98488 Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Fri, 1 Mar 2024 13:44:14 +0700 Subject: Add relation utm source to activity --- indoteknik_custom/models/web_logging/web_utm_source.py | 1 + 1 file changed, 1 insertion(+) (limited to 'indoteknik_custom/models/web_logging/web_utm_source.py') 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) -- cgit v1.2.3