Skip to content

Commit fdaef82

Browse files
author
Joel Estrada
committed
[IMP] crm_lead_to_task: Usability improves
After merging “crm_project_task,” some usability issues were reported. The following improvements have been added: - Unified to a button in the lead with a wizard that always appears - If a project is selected in the options, it will open by default in the wizard in read-only mode - Within the wizard, you can: - Convert lead to task: this is how it worked before, where you can archive the lead and move the chatter to the task - Create task and link: a task linked to the lead will be created, but the chatter will not be moved and the lead will not be archived. @moduon MT-11907
1 parent d57fa68 commit fdaef82

18 files changed

+241
-184
lines changed

crm_lead_to_task/README.rst

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
.. image:: https://odoo-community.org/readme-banner-image
2-
:target: https://odoo-community.org/get-involved?utm_source=readme
3-
:alt: Odoo Community Association
4-
51
============
62
Lead to Task
73
============
@@ -17,7 +13,7 @@ Lead to Task
1713
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
1814
:target: https://odoo-community.org/page/development-status
1915
:alt: Beta
20-
.. |badge2| image:: https://img.shields.io/badge/license-LGPL--3-blue.png
16+
.. |badge2| image:: https://img.shields.io/badge/licence-LGPL--3-blue.png
2117
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
2218
:alt: License: LGPL-3
2319
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fcrm-lightgray.png?logo=github
@@ -33,14 +29,20 @@ Lead to Task
3329
|badge1| |badge2| |badge3| |badge4| |badge5|
3430

3531
This module allows you to convert leads or opportunities into project
36-
tasks. It supports the following features:
32+
tasks or link a task with one. It supports the following features:
3733

3834
- Optional automatic archiving of the lead after conversion.
3935

40-
- Ability to configure a Force Project so tasks are created directly
41-
without a popup.
36+
- Ability to convert a lead to task or create a task and link it to the
37+
lead using the wizard.
38+
39+
- Ability to configure a Force Project to have a preselected project on
40+
the wizard.
4241

43-
- Preserves attachments and messages from the lead.
42+
- Preserves attachments and messages from the lead when converting.
43+
44+
- When linking a new task, attachments and messages are not passed and
45+
lead/opportunities are not archived.
4446

4547
**DISCLAIMER:** This module is a forward-port of a module from Odoo S.A.
4648
and as such, it is not included in the OCA CLA. That means we do not
@@ -66,8 +68,8 @@ Usage
6668

6769
1. Open the CRM settings and configure:
6870

69-
- Force Project: If set, all tasks created from leads will be
70-
assigned to this project without asking the user.
71+
- Force Project: If set, "Project" field will be preselected on the
72+
creation wizard and the field will be readonly.
7173
- Archive Lead: If enabled, the lead will be archived after
7274
converting it to a task.
7375

@@ -77,31 +79,28 @@ Usage
7779

7880
3. Open an existing lead or create a new one.
7981

80-
4. Depending on the Archive Lead setting:
81-
82-
- Enabled → The button will be labeled "Convert to Task".
83-
84-
|convert_to_task|
82+
4. Once in the lead, click to the "Create Task" button.
8583

86-
- Disabled → The button will be labeled "Create Task".
84+
|crm_lead_button|
8785

88-
|create_task|
86+
5. When clicking the button, a pop up will appear:
8987

90-
5. When clicking the button (either Create Task or Convert to Task), two
91-
scenarios are possible:
88+
- It will have a "Project" field. This field will become preselected
89+
if "Force Project" is configured.
90+
- "Convert to task" button: This button will convert the lead to a
91+
Task. This includes archive the lead if configured and pass the
92+
chatter to the new task
93+
- "Create new task and link" button: This button creates a new task
94+
and link it to the current lead. This will ignore the archive
95+
configuration and will not include the chatter in the new task.
9296

93-
- Force Project set → The task is created immediately and linked to
94-
the configured project.
95-
- No Force Project set → A popup appears allowing you to select a
96-
project. Click Create Task in the popup to proceed.
97+
|create_wizard|
9798

98-
6. After creation, you will be redirected to the new task form view. All
99-
relevant lead information, including attachments and messages, will
100-
be copied to the task.
99+
6. After creation, you will be redirected to the new task form view.
101100

102101
.. |crm_settings| image:: https://raw.githubusercontent.com/OCA/crm/18.0/crm_lead_to_task/static/description/crm_settings.png
103-
.. |convert_to_task| image:: https://raw.githubusercontent.com/OCA/crm/18.0/crm_lead_to_task/static/description/convert_to_task.png
104-
.. |create_task| image:: https://raw.githubusercontent.com/OCA/crm/18.0/crm_lead_to_task/static/description/create_task.png
102+
.. |crm_lead_button| image:: https://raw.githubusercontent.com/OCA/crm/18.0/crm_lead_to_task/static/description/crm_lead_button.png
103+
.. |create_wizard| image:: https://raw.githubusercontent.com/OCA/crm/18.0/crm_lead_to_task/static/description/create_wizard.png
105104

106105
Bug Tracker
107106
===========
@@ -131,6 +130,7 @@ Contributors
131130
- Carolina Fernandez
132131

133132
- Ruchir Shukla <ruchir@bizzappdev.com>
133+
- Joel Estrada (`Moduon <https://www.moduon.team/>`__)
134134

135135
Maintainers
136136
-----------

crm_lead_to_task/i18n/crm_lead_to_task.pot

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@
44
#
55
msgid ""
66
msgstr ""
7-
"Project-Id-Version: Odoo Server 18.0\n"
7+
"Project-Id-Version: Odoo Server 18.0+e\n"
88
"Report-Msgid-Bugs-To: \n"
9+
"POT-Creation-Date: 2025-10-06 10:29+0000\n"
10+
"PO-Revision-Date: 2025-10-06 10:29+0000\n"
911
"Last-Translator: \n"
1012
"Language-Team: \n"
1113
"MIME-Version: 1.0\n"
@@ -48,16 +50,24 @@ msgstr ""
4850
#. module: crm_lead_to_task
4951
#: model:ir.actions.act_window,name:crm_lead_to_task.crm_lead_convert2task_action
5052
#: model_terms:ir.ui.view,arch_db:crm_lead_to_task.crm_lead_convert2task_view_form
51-
#: model_terms:ir.ui.view,arch_db:crm_lead_to_task.crm_lead_view_form
5253
msgid "Convert to Task"
5354
msgstr ""
5455

5556
#. module: crm_lead_to_task
5657
#: model_terms:ir.ui.view,arch_db:crm_lead_to_task.crm_lead_convert2task_view_form
58+
msgid "Convert to task"
59+
msgstr ""
60+
61+
#. module: crm_lead_to_task
5762
#: model_terms:ir.ui.view,arch_db:crm_lead_to_task.crm_lead_view_form
5863
msgid "Create Task"
5964
msgstr ""
6065

66+
#. module: crm_lead_to_task
67+
#: model_terms:ir.ui.view,arch_db:crm_lead_to_task.crm_lead_convert2task_view_form
68+
msgid "Create new task and link"
69+
msgstr ""
70+
6171
#. module: crm_lead_to_task
6272
#: model:ir.model.fields,field_description:crm_lead_to_task.field_crm_lead_convert2task__create_uid
6373
msgid "Created by"

crm_lead_to_task/i18n/es.po

Lines changed: 36 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,41 @@
11
# Translation of Odoo Server.
22
# This file contains the translation of the following modules:
3-
# * crm_project
3+
# * crm_lead_to_task
44
#
5-
# Translators:
6-
# Martin Trigaux, 2018
7-
# Cristopher Cravioto <ccr@odoo.com>, 2018
85
msgid ""
96
msgstr ""
10-
"Project-Id-Version: Odoo Server saas~11.5\n"
7+
"Project-Id-Version: Odoo Server 18.0+e\n"
118
"Report-Msgid-Bugs-To: \n"
12-
"POT-Creation-Date: 2021-02-07 20:31+0000\n"
13-
"PO-Revision-Date: 2021-02-07 21:31+0100\n"
14-
"Last-Translator: Cristopher Cravioto <ccr@odoo.com>, 2018\n"
15-
"Language-Team: Spanish (https://www.transifex.com/odoo/teams/41243/es/)\n"
9+
"POT-Creation-Date: 2025-10-06 10:30+0000\n"
10+
"PO-Revision-Date: 2025-10-06 12:53+0200\n"
11+
"Last-Translator: Joel Estrada Castellano <joel@moduon.team>\n"
12+
"Language-Team: \n"
1613
"Language: es\n"
1714
"MIME-Version: 1.0\n"
1815
"Content-Type: text/plain; charset=UTF-8\n"
1916
"Content-Transfer-Encoding: 8bit\n"
2017
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
21-
"X-Generator: Poedit 2.3\n"
18+
"X-Generator: Poedit 3.5\n"
2219

2320
#. module: crm_lead_to_task
2421
#: model_terms:ir.ui.view,arch_db:crm_lead_to_task.crm_lead_view_form
2522
msgid ""
2623
"<span class=\"o_stat_text\" invisible=\"task_count &lt; 2\">Tasks</span>\n"
27-
" <span class=\"o_stat_text\" invisible=\"task_count "
28-
"&gt; 1\">Task</span>"
24+
" <span class=\"o_stat_text\" invisible=\"task_count &gt; 1\">Task</span>"
2925
msgstr ""
26+
"<span class=\"o_stat_text\" invisible=\"task_count &lt; 2\">Tareas</span>\r\n"
27+
" <span class=\"o_stat_text\" invisible=\"task_count &gt; 1\">Tareas</"
28+
"span>"
3029

3130
#. module: crm_lead_to_task
3231
#: model_terms:ir.ui.view,arch_db:crm_lead_to_task.view_task_form2
3332
msgid "<span class=\"o_stat_text\">CRM Lead</span>"
34-
msgstr ""
33+
msgstr "<span class=\"o_stat_text\">Iniciativas</span>"
3534

3635
#. module: crm_lead_to_task
3736
#: model_terms:ir.ui.view,arch_db:crm_lead_to_task.crm_lead_to_task_res_config_settings_view_form
3837
msgid "Archive lead"
39-
msgstr ""
38+
msgstr "Archivar iniciativa"
4039

4140
#. module: crm_lead_to_task
4241
#: model_terms:ir.ui.view,arch_db:crm_lead_to_task.crm_lead_convert2task_view_form
@@ -46,26 +45,34 @@ msgstr "Cancelar"
4645
#. module: crm_lead_to_task
4746
#: model:ir.model,name:crm_lead_to_task.model_res_company
4847
msgid "Companies"
49-
msgstr ""
48+
msgstr "Compañías"
5049

5150
#. module: crm_lead_to_task
5251
#: model:ir.model,name:crm_lead_to_task.model_res_config_settings
5352
msgid "Config Settings"
54-
msgstr ""
53+
msgstr "Ajustes de configuración"
5554

5655
#. module: crm_lead_to_task
5756
#: model:ir.actions.act_window,name:crm_lead_to_task.crm_lead_convert2task_action
5857
#: model_terms:ir.ui.view,arch_db:crm_lead_to_task.crm_lead_convert2task_view_form
59-
#: model_terms:ir.ui.view,arch_db:crm_lead_to_task.crm_lead_view_form
6058
msgid "Convert to Task"
6159
msgstr "Convertir a tarea"
6260

6361
#. module: crm_lead_to_task
6462
#: model_terms:ir.ui.view,arch_db:crm_lead_to_task.crm_lead_convert2task_view_form
63+
msgid "Convert to task"
64+
msgstr "Convertir a tarea"
65+
66+
#. module: crm_lead_to_task
6567
#: model_terms:ir.ui.view,arch_db:crm_lead_to_task.crm_lead_view_form
6668
msgid "Create Task"
6769
msgstr "Crear tarea"
6870

71+
#. module: crm_lead_to_task
72+
#: model_terms:ir.ui.view,arch_db:crm_lead_to_task.crm_lead_convert2task_view_form
73+
msgid "Create new task and link"
74+
msgstr "Crear nueva tarea y vincular"
75+
6976
#. module: crm_lead_to_task
7077
#: model:ir.model.fields,field_description:crm_lead_to_task.field_crm_lead_convert2task__create_uid
7178
msgid "Created by"
@@ -81,12 +88,12 @@ msgstr "Creado el"
8188
#: model:ir.model.fields,field_description:crm_lead_to_task.field_res_company__crm_archive_lead_on_convert
8289
#: model:ir.model.fields,field_description:crm_lead_to_task.field_res_config_settings__crm_archive_lead_on_convert
8390
msgid "Crm Archive Lead On Convert"
84-
msgstr ""
91+
msgstr "Archivar iniciativa tras convertir"
8592

8693
#. module: crm_lead_to_task
8794
#: model_terms:ir.ui.view,arch_db:crm_lead_to_task.crm_lead_to_task_res_config_settings_view_form
8895
msgid "Default project to be used when creating a task from a lead."
89-
msgstr ""
96+
msgstr "Proyecto predeterminado que se utilizará al crear una tarea a partir de una iniciativa."
9097

9198
#. module: crm_lead_to_task
9299
#: model:ir.model.fields,field_description:crm_lead_to_task.field_crm_lead_convert2task__display_name
@@ -97,7 +104,7 @@ msgstr "Nombre a mostrar"
97104
#: model:ir.model.fields,field_description:crm_lead_to_task.field_res_company__crm_force_project_id
98105
#: model:ir.model.fields,field_description:crm_lead_to_task.field_res_config_settings__crm_force_project_id
99106
msgid "Force Project"
100-
msgstr ""
107+
msgstr "Forzar Proyecto"
101108

102109
#. module: crm_lead_to_task
103110
#: model:ir.model.fields,field_description:crm_lead_to_task.field_crm_lead_convert2task__id
@@ -106,10 +113,10 @@ msgstr "ID (identificación)"
106113

107114
#. module: crm_lead_to_task
108115
#: model_terms:ir.ui.view,arch_db:crm_lead_to_task.crm_lead_to_task_res_config_settings_view_form
109-
msgid ""
110-
"If enabled, leads will be archived automatically after converting it to a "
111-
"task."
116+
msgid "If enabled, leads will be archived automatically after converting it to a task."
112117
msgstr ""
118+
"Si se habilita, las iniciativas se archivarán automáticamente después de convertirlas en una "
119+
"tarea."
113120

114121
#. module: crm_lead_to_task
115122
#: model:ir.model.fields,field_description:crm_lead_to_task.field_crm_lead_convert2task__write_uid
@@ -135,14 +142,14 @@ msgstr "Convertir Iniciativa a Tarea"
135142
#. module: crm_lead_to_task
136143
#: model:ir.model,name:crm_lead_to_task.model_crm_lead
137144
msgid "Lead/Opportunity"
138-
msgstr ""
145+
msgstr "Lead/Oportunidad"
139146

140147
#. module: crm_lead_to_task
141148
#. odoo-python
142149
#: code:addons/crm_lead_to_task/models/project_task.py:0
143150
#: code:addons/crm_lead_to_task/tests/test_crm_lead_task.py:0
144151
msgid "Lead: %s"
145-
msgstr ""
152+
msgstr "Iniciativa: %s"
146153

147154
#. module: crm_lead_to_task
148155
#: model:ir.model.fields,field_description:crm_lead_to_task.field_crm_lead_convert2task__project_id
@@ -153,30 +160,21 @@ msgstr "Proyecto"
153160
#: model:ir.model,name:crm_lead_to_task.model_project_task
154161
#: model:ir.model.fields,field_description:crm_lead_to_task.field_crm_lead__task_ids
155162
msgid "Task"
156-
msgstr ""
163+
msgstr "Tarea"
157164

158165
#. module: crm_lead_to_task
159166
#: model:ir.model.fields,field_description:crm_lead_to_task.field_crm_lead__task_count
160167
msgid "Task Count"
161-
msgstr ""
168+
msgstr "Número de tareas"
162169

163170
#. module: crm_lead_to_task
164171
#: model_terms:ir.ui.view,arch_db:crm_lead_to_task.crm_lead_to_task_res_config_settings_view_form
165172
msgid "Tasks"
166-
msgstr ""
173+
msgstr "Tareas"
167174

168175
#. module: crm_lead_to_task
169176
#. odoo-python
170177
#: code:addons/crm_lead_to_task/models/crm_lead.py:0
171178
#: code:addons/crm_lead_to_task/tests/test_crm_lead_task.py:0
172179
msgid "Tasks from crm lead %s"
173-
msgstr ""
174-
175-
#~ msgid "Last Modified on"
176-
#~ msgstr "Última modificación en"
177-
178-
#~ msgid "Customer"
179-
#~ msgstr "Cliente"
180-
181-
#~ msgid "Related Customer"
182-
#~ msgstr "Cliente relacionado"
180+
msgstr "Tareas de iniciativas %s"

0 commit comments

Comments
 (0)