Skip to content

Commit 80ba46e

Browse files
Merge pull request #73 from Escodoo/14.0-add-epa_sale_crm_custom
[14.0][ADD] epa_sale_crm_custom: add new module
2 parents 0ede8f8 + 3a70881 commit 80ba46e

25 files changed

+1819
-0
lines changed

epa_sale_crm_custom/README.rst

+118
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
===================
2+
EPA Sale CRM Custom
3+
===================
4+
5+
..
6+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7+
!! This file is generated by oca-gen-addon-readme !!
8+
!! changes will be overwritten. !!
9+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10+
!! source digest: sha256:e397e98a5d66226ddcec6ee7e37e5a1675c749dfde32fab85566baf2e92d083e
11+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12+
13+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
14+
:target: https://odoo-community.org/page/development-status
15+
:alt: Beta
16+
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
17+
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
18+
:alt: License: AGPL-3
19+
.. |badge3| image:: https://img.shields.io/badge/github-Escodoo%2Fepa--addons-lightgray.png?logo=github
20+
:target: https://github.com/Escodoo/epa-addons/tree/14.0/epa_sale_crm_custom
21+
:alt: Escodoo/epa-addons
22+
23+
|badge1| |badge2| |badge3|
24+
25+
This module extends the standard functionality of Odoo's CRM, Sales Order and Project Category modules. Key features include:
26+
27+
1. **Codename generation for leads**: Automatically generate lead names using a sequence and the codename field.
28+
2. **Criteria field validation**: When moving leads to certain stages, required criteria fields must be completed, ensuring the opportunity is fully qualified.
29+
3. **Analytic account linking**: For each lead, an analytic account can be created or linked, simplifying financial tracking of proposals.
30+
4. **Attachment management in Sales Orders**: Documents can be attached to leads and sales orders for better record-keeping and client communication.
31+
32+
**Key Features**:
33+
- Mandatory criteria validation for certain stages in CRM.
34+
- Simplified financial tracking by linking leads to analytic accounts.
35+
- Ability to attach supporting documents to both leads and sales orders.
36+
37+
These enhancements ensure that all critical information is filled out before advancing leads and streamline the sales approval process by including financial and documentation support.
38+
39+
**Table of contents**
40+
41+
.. contents::
42+
:local:
43+
44+
Configuration
45+
=============
46+
47+
This module requires a few configurations to ensure smooth operation:
48+
49+
1. Navigate to **CRM > Settings**.
50+
2. Enable the option **Validate Criteria Fields** in CRM stages. This ensures that when moving a lead to a particular stage, all criteria fields must be filled in.
51+
3. For each opportunity, ensure that an analytic account is either created or linked. This allows for financial tracking of proposals.
52+
4. In the Sales Order configuration, you can allow attachments for additional documentation to support the lead or sales process.
53+
54+
Usage
55+
=====
56+
57+
This module enhances the workflow in CRM and Sales by adding features like criteria validation and analytic account linkage.
58+
59+
**Create a lead with codename**
60+
61+
1. Navigate to the CRM and create a new lead.
62+
2. Fill in the **Codename** field, which is mandatory.
63+
3. The lead name will be automatically generated based on the sequence and the codename.
64+
4. Move the lead to the next stage as per your workflow. Some stages may require all criteria fields to be filled before proceeding.
65+
66+
**Work with criteria fields**
67+
68+
- While managing leads, the following criteria fields will be validated before you can move the lead to the next stage (if configured):
69+
* **Interesting Client**: Indicates if the client is interesting.
70+
* **Adequate Documentation**: Ensures documentation is present.
71+
* **Appropriate Equipment**: Confirms equipment availability.
72+
* **Financial Viability**: Confirms financial feasibility.
73+
* **Technological Risks**: Checks if risks are acceptable.
74+
75+
**Generate a Quotation**
76+
77+
1. After qualifying the lead, generate a quotation.
78+
2. If no analytic account is linked to the lead, a wizard will appear, allowing you to create or associate an analytic account.
79+
3. Once the account is linked, the quotation can proceed.
80+
81+
**Manage Sales Order Attachments**
82+
83+
1. When creating a sales order, attach relevant documents such as PDFs or URLs to support your proposal or sale.
84+
2. These attachments can be linked to both the lead and the sales order for tracking purposes.
85+
86+
Bug Tracker
87+
===========
88+
89+
Bugs are tracked on `GitHub Issues <https://github.com/Escodoo/epa-addons/issues>`_.
90+
In case of trouble, please check there if your issue has already been reported.
91+
If you spotted it first, help us to smash it by providing a detailed and welcomed
92+
`feedback <https://github.com/Escodoo/epa-addons/issues/new?body=module:%20epa_sale_crm_custom%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
93+
94+
Do not contact contributors directly about support or help with technical issues.
95+
96+
Credits
97+
=======
98+
99+
Authors
100+
~~~~~~~
101+
102+
* Escodoo
103+
104+
Contributors
105+
~~~~~~~~~~~~
106+
107+
* `Escodoo <https://escodoo.com.br>`_:
108+
109+
* Marcel Savegnago <[email protected]>
110+
* Kaynnan Lemes <[email protected]>
111+
* Wesley Oliveira <[email protected]>
112+
113+
Maintainers
114+
~~~~~~~~~~~
115+
116+
This module is part of the `Escodoo/epa-addons <https://github.com/Escodoo/epa-addons/tree/14.0/epa_sale_crm_custom>`_ project on GitHub.
117+
118+
You are welcome to contribute.

epa_sale_crm_custom/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
from . import models
2+
from . import wizard

epa_sale_crm_custom/__manifest__.py

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Copyright 2024 - TODAY, Escodoo
2+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
3+
4+
{
5+
"name": "EPA Sale CRM Custom",
6+
"version": "14.0.1.0.0",
7+
"license": "AGPL-3",
8+
"author": "Escodoo",
9+
"website": "https://github.com/Escodoo/epa-addons",
10+
"depends": ["sale_crm", "project_category"],
11+
"data": [
12+
"data/sequence.xml",
13+
"security/ir.model.access.csv",
14+
"views/crm_stage.xml",
15+
"views/crm_lead.xml",
16+
"wizard/crm_lead_analytic_account_wizard.xml",
17+
],
18+
}

epa_sale_crm_custom/data/sequence.xml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<!-- Copyright 2024 - TODAY, Kaynnan Lemes <[email protected]>
3+
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
4+
<odoo noupdate="True">
5+
<record id="seq_epa_sale_order_custom_lead" model="ir.sequence">
6+
<field name="name">Custom CRM Lead Sequence (in epa_sale_crm_custom)</field>
7+
<field name="code">crm.lead</field>
8+
<field name="prefix">SO-%(y)s-</field>
9+
<field name="padding">4</field>
10+
<field name="number_next">1000</field>
11+
<field name="number_increment">1</field>
12+
</record>
13+
</odoo>

0 commit comments

Comments
 (0)