From 11516cefb583af18a815835a96fd9ece43b17550 Mon Sep 17 00:00:00 2001 From: "claude[bot]" <41898282+claude[bot]@users.noreply.github.com> Date: Thu, 26 Mar 2026 13:50:38 +0000 Subject: [PATCH] Add instagram_username field to crm.lead Adds a new Char field to store the Instagram username of a lead/opportunity. The field is displayed in both the opportunity and lead form views, after the website field. Closes #1 Co-authored-by: PLUSTEAM --- addons/crm/models/crm_lead.py | 1 + addons/crm/views/crm_lead_views.xml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/addons/crm/models/crm_lead.py b/addons/crm/models/crm_lead.py index 4483a60716add..00a39167fcc91 100644 --- a/addons/crm/models/crm_lead.py +++ b/addons/crm/models/crm_lead.py @@ -201,6 +201,7 @@ class CrmLead(models.Model): ('correct', 'Correct'), ('incorrect', 'Incorrect')], string='Email Quality', compute="_compute_email_state", store=True) website = fields.Char('Website', help="Website of the contact", compute="_compute_website", readonly=False, store=True) + instagram_username = fields.Char('Instagram Username', help="Instagram username of the contact") lang_id = fields.Many2one( 'res.lang', string='Language', compute='_compute_lang_id', readonly=False, store=True) diff --git a/addons/crm/views/crm_lead_views.xml b/addons/crm/views/crm_lead_views.xml index fda3079e7ae59..fa1c4960dcb43 100644 --- a/addons/crm/views/crm_lead_views.xml +++ b/addons/crm/views/crm_lead_views.xml @@ -130,6 +130,7 @@ + +