diff --git a/crm_required_loss_reason/README.rst b/crm_required_loss_reason/README.rst new file mode 100644 index 00000000000..e53431271a7 --- /dev/null +++ b/crm_required_loss_reason/README.rst @@ -0,0 +1,87 @@ +======================== +CRM Required Loss Reason +======================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:2a68307ec0c7de64bb0c7def483501f877945c92008123be3164ecf0becf67ce + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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-LGPL--3-blue.png + :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html + :alt: License: LGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fcrm-lightgray.png?logo=github + :target: https://github.com/OCA/crm/tree/16.0/crm_required_loss_reason + :alt: OCA/crm +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/crm-16-0/crm-16-0-crm_required_loss_reason + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png + :target: https://runboat.odoo-community.org/builds?repo=OCA/crm&target_branch=16.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module makes required the loss reason field in the wizard that is raised when a lead is lost. +This is useful to have a better control of the reasons why leads are lost. + +**Table of contents** + +.. contents:: + :local: + +Bug Tracker +=========== + +Bugs are tracked on `GitHub 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 `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* Jarsa + +Contributors +~~~~~~~~~~~~ + +* `Jarsa `__: + + * Alan Ramos + +Maintainers +~~~~~~~~~~~ + +This module is maintained by the OCA. + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use. + +.. |maintainer-alan196| image:: https://github.com/alan196.png?size=40px + :target: https://github.com/alan196 + :alt: alan196 + +Current `maintainer `__: + +|maintainer-alan196| + +This module is part of the `OCA/crm `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/crm_required_loss_reason/__init__.py b/crm_required_loss_reason/__init__.py new file mode 100644 index 00000000000..0f7d6ca8e2a --- /dev/null +++ b/crm_required_loss_reason/__init__.py @@ -0,0 +1,2 @@ +# Copyright 2024 Jarsa - Alan Ramos +# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl). diff --git a/crm_required_loss_reason/__manifest__.py b/crm_required_loss_reason/__manifest__.py new file mode 100644 index 00000000000..96ffaab862b --- /dev/null +++ b/crm_required_loss_reason/__manifest__.py @@ -0,0 +1,18 @@ +# Copyright 2024 Jarsa - Alan Ramos +# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl). +{ + "name": "CRM Required Loss Reason", + "summary": "Make loss reason required in wizard", + "version": "16.0.1.0.0", + "category": "Customer Relationship Management", + "website": "https://github.com/OCA/crm", + "author": "Jarsa, Odoo Community Association (OCA)", + "license": "LGPL-3", + "application": False, + "installable": True, + "depends": ["crm"], + "maintainers": ["alan196"], + "data": [ + "wizards/crm_lead_lost_views.xml", + ], +} diff --git a/crm_required_loss_reason/readme/CONTRIBUTORS.rst b/crm_required_loss_reason/readme/CONTRIBUTORS.rst new file mode 100644 index 00000000000..e79cd163635 --- /dev/null +++ b/crm_required_loss_reason/readme/CONTRIBUTORS.rst @@ -0,0 +1,3 @@ +* `Jarsa `__: + + * Alan Ramos diff --git a/crm_required_loss_reason/readme/DESCRIPTION.rst b/crm_required_loss_reason/readme/DESCRIPTION.rst new file mode 100644 index 00000000000..e040a450500 --- /dev/null +++ b/crm_required_loss_reason/readme/DESCRIPTION.rst @@ -0,0 +1,2 @@ +This module makes required the loss reason field in the wizard that is raised when a lead is lost. +This is useful to have a better control of the reasons why leads are lost. diff --git a/crm_required_loss_reason/static/description/index.html b/crm_required_loss_reason/static/description/index.html new file mode 100644 index 00000000000..47ccee9bf31 --- /dev/null +++ b/crm_required_loss_reason/static/description/index.html @@ -0,0 +1,429 @@ + + + + + +CRM Required Loss Reason + + + +
+

CRM Required Loss Reason

+ + +

Beta License: LGPL-3 OCA/crm Translate me on Weblate Try me on Runboat

+

This module makes required the loss reason field in the wizard that is raised when a lead is lost. +This is useful to have a better control of the reasons why leads are lost.

+

Table of contents

+ +
+

Bug Tracker

+

Bugs are tracked on GitHub 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.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • Jarsa
  • +
+
+
+

Contributors

+
    +
  • Jarsa:
      +
    • Alan Ramos
    • +
    +
  • +
+
+
+

Maintainers

+

This module is maintained by the OCA.

+ +Odoo Community Association + +

OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use.

+

Current maintainer:

+

alan196

+

This module is part of the OCA/crm project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/crm_required_loss_reason/wizards/crm_lead_lost_views.xml b/crm_required_loss_reason/wizards/crm_lead_lost_views.xml new file mode 100644 index 00000000000..15a3142b866 --- /dev/null +++ b/crm_required_loss_reason/wizards/crm_lead_lost_views.xml @@ -0,0 +1,13 @@ + + + + crm.lead.lost.form + crm.lead.lost + + + + 1 + + + + diff --git a/setup/crm_required_loss_reason/odoo/addons/crm_required_loss_reason b/setup/crm_required_loss_reason/odoo/addons/crm_required_loss_reason new file mode 120000 index 00000000000..277a65ec1a2 --- /dev/null +++ b/setup/crm_required_loss_reason/odoo/addons/crm_required_loss_reason @@ -0,0 +1 @@ +../../../../crm_required_loss_reason \ No newline at end of file diff --git a/setup/crm_required_loss_reason/setup.py b/setup/crm_required_loss_reason/setup.py new file mode 100644 index 00000000000..28c57bb6403 --- /dev/null +++ b/setup/crm_required_loss_reason/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)