diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2022-10-26 08:41:39 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2022-10-26 08:41:39 +0700 |
| commit | 34b3661f2bd3c204b91b8a38040f13eb30358ed5 (patch) | |
| tree | 6e423e21089842a3ef540fb054fdd96aeeaabd2f | |
| parent | 38a6db24102a2ed5b8f81e307e9fc832d2adb334 (diff) | |
| parent | 3fc38cab92e820cf0b59a6e06d933bfec5c90d4e (diff) | |
Merge commit '3fc38cab92e820cf0b59a6e06d933bfec5c90d4e'
| -rwxr-xr-x | indoteknik_custom/models/crm_lead.py | 5 |
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([ |
