summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-10-26 08:41:39 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-10-26 08:41:39 +0700
commit34b3661f2bd3c204b91b8a38040f13eb30358ed5 (patch)
tree6e423e21089842a3ef540fb054fdd96aeeaabd2f
parent38a6db24102a2ed5b8f81e307e9fc832d2adb334 (diff)
parent3fc38cab92e820cf0b59a6e06d933bfec5c90d4e (diff)
Merge commit '3fc38cab92e820cf0b59a6e06d933bfec5c90d4e'
-rwxr-xr-xindoteknik_custom/models/crm_lead.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/indoteknik_custom/models/crm_lead.py b/indoteknik_custom/models/crm_lead.py
index 53ea176c..e0a90d9c 100755
--- a/indoteknik_custom/models/crm_lead.py
+++ b/indoteknik_custom/models/crm_lead.py
@@ -11,6 +11,11 @@ class CrmLead(models.Model):
file_siup = fields.Binary(string="Surat Izin Usaha Perdagangan")
body_html_lead = fields.Text('Body HTML', compute='compute_body_leads')
+ @api.onchange('stage_id')
+ def update_stars(self):
+ for lead in self:
+ lead.priority = 0
+
def compute_body_leads(self):
for lead in self:
mail_message = self.env['mail.message'].search([