summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2023-08-04 12:58:37 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2023-08-04 12:58:37 +0700
commit1ef822f76b33fdd7db786735c6fd7f770b26f3ee (patch)
tree3e0cfd5e0f6827e0c2d0c3c0a2ef9e290a10a10d
parent6d17228cd6c789fe4460e28807d5b39fb1bbe9b7 (diff)
fix crm leads salesperson
-rwxr-xr-xindoteknik_custom/models/crm_lead.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/indoteknik_custom/models/crm_lead.py b/indoteknik_custom/models/crm_lead.py
index e37985c7..4efe23c5 100755
--- a/indoteknik_custom/models/crm_lead.py
+++ b/indoteknik_custom/models/crm_lead.py
@@ -80,7 +80,8 @@ class CrmLead(models.Model):
lead.tag_ids = input_tags
if not lead.partner_id:
- continue
+ salesperson_id = 20
+
if not lead.user_id or lead.user_id.id in [2, 25]:
partner = lead.partner_id.parent_id or lead.partner_id
if partner.user_id and partner.user_id.id not in [2, 25]: