diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2023-03-23 11:22:16 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2023-03-23 11:22:16 +0700 |
| commit | 3aa64db9c10d0fcb8009e9e6f942672a12669099 (patch) | |
| tree | 2ea2353c601ab6cfde7deddfc45f051d6e1c95b8 | |
| parent | 236c042be3da32955ac161b6ca6fd31f81d61eab (diff) | |
add sales order id in leads
| -rwxr-xr-x | indoteknik_custom/models/crm_lead.py | 3 | ||||
| -rwxr-xr-x | indoteknik_custom/views/crm_lead.xml | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/indoteknik_custom/models/crm_lead.py b/indoteknik_custom/models/crm_lead.py index 0534eb2f..e8005b61 100755 --- a/indoteknik_custom/models/crm_lead.py +++ b/indoteknik_custom/models/crm_lead.py @@ -10,10 +10,11 @@ class CrmLead(models.Model): file_tdp = fields.Binary(string="Tanda Daftar Perusahaan") file_siup = fields.Binary(string="Surat Izin Usaha Perdagangan") body_html_lead = fields.Text('Body HTML', compute='compute_body_leads') - # for wati only + # for wati onlys ticket_id = fields.Char('Ticket ID', help='Ticket ID yang ada di WATI') operator_email = fields.Char('Operator Email', help='Operator yang membalas') operator_name = fields.Char('Operator Name', help='Operator yang membalas') + order_id = fields.Many2one('sale.order', string='Sales Order', help='Link ke sales order id') def revert_to_leads(self): opportunities = self.env['crm.lead'].search([ diff --git a/indoteknik_custom/views/crm_lead.xml b/indoteknik_custom/views/crm_lead.xml index 58c27050..b2712174 100755 --- a/indoteknik_custom/views/crm_lead.xml +++ b/indoteknik_custom/views/crm_lead.xml @@ -19,6 +19,9 @@ </group> </page> </page> + <field name="message_bounce" position="after"> + <field name="order_id"/> + </field> </field> </record> </data> |
