From 9df53ac2b48ee5f6285715f642b341dff93ad295 Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Thu, 26 Jan 2023 09:11:45 +0700 Subject: change condition of leads monitoring --- indoteknik_custom/models/leads_monitoring.py | 2 +- indoteknik_custom/views/leads_monitoring.xml | 8 ++++---- 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'" /> @@ -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'" /> -- cgit v1.2.3