Repository
OCA/crm · module folder · Try on Runboat
Module version
1.0.0
Category
Customer Relationship Management
Folder size
0.38 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
http://www.camptocamp.com
Last tracking update
2026-08-07 07:03:04
Authors
Camptocamp, Odoo Community Association (OCA)
Maintainers
Camptocamp, Odoo Community Association (OCA)
Committers
Stéphane Bidoul, Jacques-Etienne Baudoux, Romain Deheele, Alexandre Fayolle, GitHub, Stéphane Bidoul (ACSONE), Weblate, OCA Transbot, Damien Crier, oca-travis
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
Description

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
crm_case_form_view_oppor_reason Opportunities - add Reason crm.lead form Inherits crm.crm_case_form_view_oppor
view_crm_lead_lost Reason for the lost crm.lead.lost form New
view_crm_lead_lost_reason_form Crm Lead Lost Reason crm.lead.lost.reason form New
view_crm_lead_lost_reason_tree Crm Lead Lost Reason crm.lead.lost.reason tree New
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (3)

New fields (1)
  • lost_reason_id Many2one → crm.lead.lost.reason
    ondelete='restrict' readonly=True string='Reason for lost' args: 'crm.lead.lost.reason'
Public methods (1)
  • write(self, vals)
    @api.multi
    Check if a lost reason is given when you mark an opportunity as lost. If there is no lost reason, it indicates you to pass by form to provide a lost reason. It's the choice of the simplicity to avoid to struggle with kanban javascript code. Erases too the lost reason if the lead is passed from lost to another stage.

New fields (1)
  • reason_id Many2one → crm.lead.lost.reason
    default=_default_reason required=True string='Reason' args: 'crm.lead.lost.reason'
Public methods (1)
  • confirm_lost(self)
    @api.one

New fields (1)
  • name Char
    required=True translate=True args: 'Reason'
Public methods (0)

No public methods.