Opportunity Lost Reason

crm_lead_lost_reason
REPOSITORY
REPOSITORYOCA/crm
GIT
GIThttps://github.com/OCA/crm.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/crm/tree/8.0/crm_lead_lost_reason
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYCustomer Relationship Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Camptocamp
COMMITTERS
COMMITTERSStéphane Bidoul, Romain Deheele, Alexandre Fayolle, GitHub, Jacques-Etienne Baudoux, Stéphane Bidoul (ACSONE), OCA Transbot, Damien Crier, oca-travis, Weblate
WEBSITE
WEBSITEhttp://www.camptocamp.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:11:20
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - crm
    - base_action_rule
    - base
    - resource
    - mail
    - base_setup
    - web_kanban
    - web
    - sales_team
    - web_kanban_sparkline
    - email_template
    - calendar
    - web_calendar
    - board
    - fetchmail
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
crm_case_form_view_oppor_reason Opportunities - add Reason crm.lead xpath 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
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.