Skip to content

Commit 26ae56f

Browse files
committed
[ADD] Add crm_lead_approval module
1 parent 05c7d54 commit 26ae56f

21 files changed

+1245
-0
lines changed

crm_lead_approval/README.rst

+115
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
=================
2+
CRM Lead Approval
3+
=================
4+
5+
..
6+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7+
!! This file is generated by oca-gen-addon-readme !!
8+
!! changes will be overwritten. !!
9+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10+
!! source digest: sha256:735245e54463fae2254dcd6790ba909be3fd49ff8ffcb6119b2dbad96172d7fc
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-OCA%2Fcrm-lightgray.png?logo=github
20+
:target: https://github.com/OCA/crm/tree/17.0/crm_lead_approval
21+
:alt: OCA/crm
22+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23+
:target: https://translation.odoo-community.org/projects/crm-17-0/crm-17-0-crm_lead_approval
24+
:alt: Translate me on Weblate
25+
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/crm&target_branch=17.0
27+
:alt: Try me on Runboat
28+
29+
|badge1| |badge2| |badge3| |badge4| |badge5|
30+
31+
This module enables an approval process for opportunities in the CRM.
32+
Approvals can be configured according to Sales Teams or CRM Tags and
33+
then matching opportunities can be submitted to the approval process
34+
through a dedicated button.
35+
36+
**Table of contents**
37+
38+
.. contents::
39+
:local:
40+
41+
Configuration
42+
=============
43+
44+
1. Navigate to the CRM settings.
45+
2. Add the relevant Sales Teams and/or CRM Tags to the "Sales Teams
46+
opportunities approval" and "CRM Tags opportunities approval"
47+
settings.
48+
49+
Once configured, the approval button will appear in leads, allowing them
50+
to enter the approval process, but only for opportunities associated
51+
with the specified Sales Teams or CRM Tags.
52+
53+
Usage
54+
=====
55+
56+
#. Access your leads in the CRM:
57+
58+
- Go to *CRM > Sales > My Pipeline*.
59+
- Open an existing lead or create a new one.
60+
61+
#. Provide an opinion on the lead:
62+
63+
- Locate the approval button "Approve/Refuse" on the left side of the
64+
screen (visible only if you have the necessary permissions).
65+
- Click the button, and an approval popup will appear.
66+
- Optionally, add a comment to justify your opinion.
67+
- Click one of the following buttons to confirm and submit your opinion:
68+
"Approve", "Reserved", or "Disapprove".
69+
70+
#. Message added to the lead's chatter:
71+
72+
- Once the opinion is submitted, a message will automatically be added
73+
to the lead's chatter, recording the opinion and any accompanying
74+
comment.
75+
76+
Bug Tracker
77+
===========
78+
79+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/crm/issues>`_.
80+
In case of trouble, please check there if your issue has already been reported.
81+
If you spotted it first, help us to smash it by providing a detailed and welcomed
82+
`feedback <https://github.com/OCA/crm/issues/new?body=module:%20crm_lead_approval%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
83+
84+
Do not contact contributors directly about support or help with technical issues.
85+
86+
Credits
87+
=======
88+
89+
Authors
90+
-------
91+
92+
* INVITU SARL
93+
94+
Contributors
95+
------------
96+
97+
- Cyril VINH-TUNG <cyril@invitu.com>
98+
- Vehiana TEPUHIARII <vehi@invitu.com>
99+
100+
Maintainers
101+
-----------
102+
103+
This module is maintained by the OCA.
104+
105+
.. image:: https://odoo-community.org/logo.png
106+
:alt: Odoo Community Association
107+
:target: https://odoo-community.org
108+
109+
OCA, or the Odoo Community Association, is a nonprofit organization whose
110+
mission is to support the collaborative development of Odoo features and
111+
promote its widespread use.
112+
113+
This module is part of the `OCA/crm <https://github.com/OCA/crm/tree/17.0/crm_lead_approval>`_ project on GitHub.
114+
115+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

crm_lead_approval/__init__.py

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Copyright 2024 INVITU SARL
2+
# License AGPL-3 or later (https://www.gnu.org/licenses/agpl.html).
3+
4+
from . import models
5+
from . import wizard

crm_lead_approval/__manifest__.py

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Copyright 2024 INVITU SARL
2+
# License AGPL-3 or later (https://www.gnu.org/licenses/agpl.html).
3+
{
4+
"name": "CRM Lead Approval",
5+
"summary": "This module allows to approve or not a lead.",
6+
"version": "17.0.1.0.0",
7+
"category": "Customer Relationship Management",
8+
"author": "INVITU SARL, Odoo Community Association (OCA)",
9+
"license": "AGPL-3",
10+
"website": "https://github.com/OCA/crm",
11+
"depends": [
12+
"crm",
13+
],
14+
"data": [
15+
"security/ir.model.access.csv",
16+
"views/res_config_settings.xml",
17+
"wizard/approval_wizard_views.xml",
18+
"views/crm_lead_views.xml",
19+
],
20+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,175 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * crm_lead_approval
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 17.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"POT-Creation-Date: 2025-01-16 21:00+0000\n"
10+
"PO-Revision-Date: 2025-01-16 21:00+0000\n"
11+
"Last-Translator: \n"
12+
"Language-Team: \n"
13+
"MIME-Version: 1.0\n"
14+
"Content-Type: text/plain; charset=UTF-8\n"
15+
"Content-Transfer-Encoding: \n"
16+
"Plural-Forms: \n"
17+
18+
#. module: crm_lead_approval
19+
#: model_terms:ir.ui.view,arch_db:crm_lead_approval.res_config_settings_approved_teams
20+
msgid ""
21+
"Allow opportunities to proceed through the approval process with these CRM "
22+
"Tags."
23+
msgstr ""
24+
25+
#. module: crm_lead_approval
26+
#: model:ir.actions.act_window,name:crm_lead_approval.action_crm_approval_wizard
27+
#: model:ir.model.fields,field_description:crm_lead_approval.field_crm_lead__approval
28+
msgid "Approval"
29+
msgstr ""
30+
31+
#. module: crm_lead_approval
32+
#: model:ir.model.fields,field_description:crm_lead_approval.field_res_company__approval_tag_ids
33+
msgid "Approval Tag"
34+
msgstr ""
35+
36+
#. module: crm_lead_approval
37+
#: model:ir.model.fields,field_description:crm_lead_approval.field_res_company__approval_team_ids
38+
msgid "Approval Team"
39+
msgstr ""
40+
41+
#. module: crm_lead_approval
42+
#: model_terms:ir.ui.view,arch_db:crm_lead_approval.view_crm_approval_wizard_form
43+
msgid "Approval wizard"
44+
msgstr ""
45+
46+
#. module: crm_lead_approval
47+
#: model:ir.model.fields.selection,name:crm_lead_approval.selection__crm_lead__approval__done
48+
#: model_terms:ir.ui.view,arch_db:crm_lead_approval.view_crm_approval_wizard_form
49+
msgid "Approve"
50+
msgstr ""
51+
52+
#. module: crm_lead_approval
53+
#: model_terms:ir.ui.view,arch_db:crm_lead_approval.view_crm_lead_form_approval
54+
msgid "Approve/Refuse"
55+
msgstr ""
56+
57+
#. module: crm_lead_approval
58+
#: model:ir.model,name:crm_lead_approval.model_crm_approval_wizard
59+
msgid "CRM Approval Wizard"
60+
msgstr ""
61+
62+
#. module: crm_lead_approval
63+
#: model:ir.model.fields,field_description:crm_lead_approval.field_res_config_settings__approval_tag_ids
64+
msgid "CRM Tags opportunities approval"
65+
msgstr ""
66+
67+
#. module: crm_lead_approval
68+
#: model_terms:ir.ui.view,arch_db:crm_lead_approval.view_crm_approval_wizard_form
69+
msgid "Cancel"
70+
msgstr ""
71+
72+
#. module: crm_lead_approval
73+
#: model:ir.model.fields,help:crm_lead_approval.field_res_config_settings__approval_tag_ids
74+
msgid "Choose CRM tags for which you want opportunity approval"
75+
msgstr ""
76+
77+
#. module: crm_lead_approval
78+
#: model:ir.model.fields,help:crm_lead_approval.field_res_config_settings__approval_team_ids
79+
msgid "Choose Sales Teams for which you want opportunity approval"
80+
msgstr ""
81+
82+
#. module: crm_lead_approval
83+
#: model:ir.model,name:crm_lead_approval.model_res_company
84+
msgid "Companies"
85+
msgstr ""
86+
87+
#. module: crm_lead_approval
88+
#: model:ir.model,name:crm_lead_approval.model_res_config_settings
89+
msgid "Config Settings"
90+
msgstr ""
91+
92+
#. module: crm_lead_approval
93+
#: model:ir.model.fields,field_description:crm_lead_approval.field_crm_approval_wizard__create_uid
94+
msgid "Created by"
95+
msgstr ""
96+
97+
#. module: crm_lead_approval
98+
#: model:ir.model.fields,field_description:crm_lead_approval.field_crm_approval_wizard__create_date
99+
msgid "Created on"
100+
msgstr ""
101+
102+
#. module: crm_lead_approval
103+
#: model:ir.model.fields.selection,name:crm_lead_approval.selection__crm_lead__approval__blocked
104+
#: model_terms:ir.ui.view,arch_db:crm_lead_approval.view_crm_approval_wizard_form
105+
msgid "Disapprove"
106+
msgstr ""
107+
108+
#. module: crm_lead_approval
109+
#: model:ir.model.fields,field_description:crm_lead_approval.field_crm_approval_wizard__display_name
110+
msgid "Display Name"
111+
msgstr ""
112+
113+
#. module: crm_lead_approval
114+
#: model_terms:ir.ui.view,arch_db:crm_lead_approval.res_config_settings_approved_teams
115+
msgid ""
116+
"Enable these Sales Teams to provide their approval in the opportunities "
117+
"assigned to them."
118+
msgstr ""
119+
120+
#. module: crm_lead_approval
121+
#: model:ir.model.fields,field_description:crm_lead_approval.field_crm_approval_wizard__id
122+
msgid "ID"
123+
msgstr ""
124+
125+
#. module: crm_lead_approval
126+
#: model:ir.model.fields,help:crm_lead_approval.field_crm_lead__to_be_approved
127+
msgid ""
128+
"Indicates whether the record required approval or not"
129+
msgstr ""
130+
131+
#. module: crm_lead_approval
132+
#: model:ir.model.fields,field_description:crm_lead_approval.field_crm_approval_wizard__write_uid
133+
msgid "Last Updated by"
134+
msgstr ""
135+
136+
#. module: crm_lead_approval
137+
#: model:ir.model.fields,field_description:crm_lead_approval.field_crm_approval_wizard__write_date
138+
msgid "Last Updated on"
139+
msgstr ""
140+
141+
#. module: crm_lead_approval
142+
#: model:ir.model,name:crm_lead_approval.model_crm_lead
143+
msgid "Lead/Opportunity"
144+
msgstr ""
145+
146+
#. module: crm_lead_approval
147+
#: model:ir.model.fields.selection,name:crm_lead_approval.selection__crm_lead__approval__none
148+
msgid "None"
149+
msgstr ""
150+
151+
#. module: crm_lead_approval
152+
#: model:ir.model.fields,field_description:crm_lead_approval.field_crm_approval_wizard__approval_comment
153+
msgid "Observation"
154+
msgstr ""
155+
156+
#. module: crm_lead_approval
157+
#: model:ir.model.fields,field_description:crm_lead_approval.field_crm_approval_wizard__lead_id
158+
msgid "Opportunity"
159+
msgstr ""
160+
161+
#. module: crm_lead_approval
162+
#: model:ir.model.fields.selection,name:crm_lead_approval.selection__crm_lead__approval__normal
163+
#: model_terms:ir.ui.view,arch_db:crm_lead_approval.view_crm_approval_wizard_form
164+
msgid "Reserved"
165+
msgstr ""
166+
167+
#. module: crm_lead_approval
168+
#: model:ir.model.fields,field_description:crm_lead_approval.field_res_config_settings__approval_team_ids
169+
msgid "Sales Teams opportunities approval"
170+
msgstr ""
171+
172+
#. module: crm_lead_approval
173+
#: model:ir.model.fields,field_description:crm_lead_approval.field_crm_lead__to_be_approved
174+
msgid "To be approved"
175+
msgstr ""

0 commit comments

Comments
 (0)