summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2023-01-26 09:11:45 +0700
committerstephanchrst <stephanchrst@gmail.com>2023-01-26 09:11:45 +0700
commit9df53ac2b48ee5f6285715f642b341dff93ad295 (patch)
tree6758c8f513cc55d0de28d6c35860099d995e6b0b
parent435d8278e7801d8c6ccaea8c62a66906761de098 (diff)
change condition of leads monitoring
-rw-r--r--indoteknik_custom/models/leads_monitoring.py2
-rw-r--r--indoteknik_custom/views/leads_monitoring.xml8
2 files changed, 5 insertions, 5 deletions
diff --git a/indoteknik_custom/models/leads_monitoring.py b/indoteknik_custom/models/leads_monitoring.py
index 0fe63a3d..f371ed65 100644
--- a/indoteknik_custom/models/leads_monitoring.py
+++ b/indoteknik_custom/models/leads_monitoring.py
@@ -64,7 +64,7 @@ class LeadsMonitoring(models.Model):
from crm_lead cl
left join res_users u on u.id = cl.user_id
left join res_partner p on p.id = u.partner_id
- where cl.active = 'true' and cl.stage_id not in(4,7)
+ where cl.active = 'true' and cl.stage_id not in(7)
order by cl.create_date desc
)
""" % self._table)
diff --git a/indoteknik_custom/views/leads_monitoring.xml b/indoteknik_custom/views/leads_monitoring.xml
index 3b4327cd..9e9934dd 100644
--- a/indoteknik_custom/views/leads_monitoring.xml
+++ b/indoteknik_custom/views/leads_monitoring.xml
@@ -25,8 +25,8 @@
widget="badge"
decoration-danger="stage_status == '1-Lead / Potensi Baru'"
decoration-warning="stage_status == '2-Proses Lain, Visit, Etc'"
- decoration-success="stage_status == '3-Proses Quotation'"
- decoration-info="stage_status == '4-Proses Negosiasi'"
+ decoration-success="stage_status == '5-Proses Berhasil'"
+ decoration-info="stage_status == '4-Proses Negosiasi' or stage_status == '3-Proses Quotation'"
/>
</tree>
</field>
@@ -60,8 +60,8 @@
widget="badge"
decoration-danger="stage_status == '1-Lead / Potensi Baru'"
decoration-warning="stage_status == '2-Proses Lain, Visit, Etc'"
- decoration-success="stage_status == '3-Proses Quotation'"
- decoration-info="stage_status == '4-Proses Negosiasi'"
+ decoration-success="stage_status == '5-Proses Berhasil'"
+ decoration-info="stage_status == '4-Proses Negosiasi' or stage_status == '3-Proses Quotation'"
/>
</group>
</group>