Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ADD] crm_lead_lost_reason #506

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 67 additions & 0 deletions crm_lead_lost_reason/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
=================
CRM - Lost Reason
=================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:a23a2ca6255bf767f7ddf11d5bfa8f126304fb8e205cea3aafca992c5b7f370a
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-camptocamp%2Fcrm-lightgray.png?logo=github
:target: https://github.com/camptocamp/crm/tree/15.0-ADD-crm_lead_lost_reason/crm_lead_lost_reason
:alt: camptocamp/crm

|badge1| |badge2| |badge3|

Always ask for lost reason when setting a lead/opportunity as "lost".

**Table of contents**

.. contents::
:local:

Usage
=====

To use this module, you just need to install it.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/camptocamp/crm/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/camptocamp/crm/issues/new?body=module:%20crm_lead_lost_reason%0Aversion:%2015.0-ADD-crm_lead_lost_reason%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
~~~~~~~

* Camptocamp

Contributors
~~~~~~~~~~~~

* `Camptocamp <https://www.camptocamp.com>`_:

* Silvio Gregorini <[email protected]>

Maintainers
~~~~~~~~~~~

This module is part of the `camptocamp/crm <https://github.com/camptocamp/crm/tree/15.0-ADD-crm_lead_lost_reason/crm_lead_lost_reason>`_ project on GitHub.

You are welcome to contribute.
Empty file.
17 changes: 17 additions & 0 deletions crm_lead_lost_reason/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright 2023 Camptocamp SA
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).

{
"name": "CRM - Lost Reason",
"summary": "Always add lost reasons to leads/opportunities",
"version": "15.0.1.0.0",
"category": "Customer Relationship Management",
"website": "https://github.com/OCA/crm",
"author": "Camptocamp, Odoo Community Association (OCA)",
"license": "AGPL-3",
"depends": ["crm"],
"data": [
"data/ir_actions_server.xml",
"views/crm_lead.xml",
],
}
11 changes: 11 additions & 0 deletions crm_lead_lost_reason/data/ir_actions_server.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="crm.action_mark_as_lost" model="ir.actions.server">
<field name="code">
if records:
action_values = env.ref('crm.crm_lead_lost_action').sudo().read()[0]
action_values.update({'context': env.context})
action = action_values
</field>
</record>
</odoo>
3 changes: 3 additions & 0 deletions crm_lead_lost_reason/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
* `Camptocamp <https://www.camptocamp.com>`_:

* Silvio Gregorini <[email protected]>
1 change: 1 addition & 0 deletions crm_lead_lost_reason/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Always ask for lost reason when setting a lead/opportunity as "lost".
1 change: 1 addition & 0 deletions crm_lead_lost_reason/readme/USAGE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
To use this module, you just need to install it.
Loading