summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/crm_lead.py
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2024-11-28 10:43:58 +0700
committerit-fixcomart <it@fixcomart.co.id>2024-11-28 10:43:58 +0700
commitb1af79a0ed73a7af2557c8269d82bbc99afaa601 (patch)
tree6bf2ef8aec570bcb05b59a504ebeece215383845 /indoteknik_custom/models/crm_lead.py
parent56f2deda9cdf2a51d5a53aade7758a0ac9313e05 (diff)
parent58bec36c52b223c12fd15511a56ab417ebbd7257 (diff)
Merge branch 'production' into iman/switch-account
# Conflicts: # indoteknik_api/models/res_users.py
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..078d9810 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 = 2 # User ID: Sales
return rec
@api.onchange('user_id')