summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/crm_lead.py
diff options
context:
space:
mode:
Diffstat (limited to 'indoteknik_custom/models/crm_lead.py')
-rwxr-xr-xindoteknik_custom/models/crm_lead.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/indoteknik_custom/models/crm_lead.py b/indoteknik_custom/models/crm_lead.py
index de2bdb12..050168a5 100755
--- a/indoteknik_custom/models/crm_lead.py
+++ b/indoteknik_custom/models/crm_lead.py
@@ -31,6 +31,8 @@ class CrmLead(models.Model):
if rec.email_from == 'api.noreply@altama.co.id' and rec.name.startswith('INDOTEKNIK|ODOO|'):
rec.user_id = 20 # User ID: Nabila Rahmawati
+ if not rec.user_id:
+ rec.user_id = 20 # User ID: Nabila Rahmawati
return rec
@api.onchange('user_id')