Repository
odoo/odoo · module folder
Module version
0.1.0
Category
Sales/CRM
Folder size
0.5 MB
License
LGPL-3
Application
No
Auto-installable
Yes
Website
None
Last tracking update
2026-08-15 22:44:19
Authors
Odoo S.A.
Maintainers
Odoo S.A.
Committers
Odoo Translation Bot, Alexandre Kühn, Julien Castiaux, Sébastien Theys, Julien Mougenot, Tiffany Chang (tic), Gorash, Mathieu Duckerts-Antoine, Didier (did), tsm-odoo, Dylan Kiss (dyki), Zelong Lin, Maryam Kia, reka-odoo, Alex Kühn, asno-odoo, aamo-odoo, guce, Krzysztof Magusiak (krma), Giorgio Tocco (gito), akha, jayp-odoo, nmak-odoo
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
test_discuss_full
Description
Create new lead with using /lead command in the channel

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
chatbot_script_step_view_form chatbot.script.step.view.form.inherit.crm.livechat chatbot.script.step form Inherits im_livechat.chatbot_script_step_view_form
chatbot_script_view_form chatbot.script.view.form.inherit.crm.livechat chatbot.script form Inherits im_livechat.chatbot_script_view_form
crm_lead_view_form crm.lead.view.form.inherit.crm.livechat crm.lead form Inherits crm.crm_lead_view_form
discuss_channel_view_form discuss.channel.view.form.inherit.crm.livechat discuss.channel form Inherits mail.discuss_channel_view_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (6)

New fields (1)
  • lead_count Integer
    compute='_compute_lead_count' string='Generated Lead Count'
Public methods (1)
  • action_view_leads(self)

New fields (2)
  • crm_team_id Many2one → crm.team
    help="Used in combination with 'create_lead' step type in order to automatically assign the created lead/opportunity to the defined team" index='btree_not_null' ondelete='set null' string='Sales Team' args: 'crm.team'
  • step_type Selection
    ondelete={'create_lead': 'cascade', 'create_lead_and_forward': 'cascade'} selection_add=[('create_lead', 'Create Lead'), ('create_lead_and_forward', 'Create Lead & Forward')]
Public methods (0)

No public methods.

New fields (1)
  • origin_channel_id Many2one → discuss.channel
    index='btree_not_null' readonly=True args: 'discuss.channel', 'Live chat from which the lead was created'
Public methods (3)
  • action_open_livechat(self)
  • create(self, vals_list)
    @api.model_create_multi
  • write(self, vals)

New fields (2)
  • has_crm_lead Boolean
    compute='_compute_has_crm_lead' store=True
  • lead_ids One2many → crm.lead
    groups='sales_team.group_sale_salesman' help='The channel becomes accessible to sales users when leads are set.' string='Leads' args: 'crm.lead', 'origin_channel_id'
Public methods (1)
  • execute_command_lead(self, **kwargs)

New fields (1)
  • leads_created Integer
    aggregator='sum' readonly=True args: 'Leads created'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…