Skip to content

Conversation

@u0f
Copy link
Contributor

@u0f u0f commented Oct 6, 2025

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.
    • README updated
    • New tests to cover up this improves.

https://www.loom.com/share/142ac524c4274a75b6aef5d1ef6feb5b

@moduon MT-11907

@u0f u0f force-pushed the imp-crm_lead_to_task branch from e2307f3 to 3948f3d Compare October 6, 2025 13:57
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
@u0f u0f force-pushed the imp-crm_lead_to_task branch from 3948f3d to fdaef82 Compare October 6, 2025 14:23
Copy link
Member

@rafaelbn rafaelbn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello, thank you for this improvements 🙏🏼

Thank you! 😄 ❤️

<record id="crm_lead_convert2task_view_form" model="ir.ui.view">
<field name="model">crm.lead.convert2task</field>
<field name="arch" type="xml">
<form string="Convert to Task">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue: this form title is now misleading

action["context"] = context
return action

def _move_chatter(self, task):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue: remember that many modules can coexist, so it's better if method names are more explicit:

Suggested change
def _move_chatter(self, task):
def _move_chatter_to_task(self, task):

Comment on lines +93 to +94
if self.company_id.crm_archive_lead_on_convert:
self.active = False
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: does this make sense now? If users have the ability to click on "convert to task", shouldn't that just archive always?

IMHO the crm_archive_lead_on_convert should be an option with 3 choices:

  • Always
  • Never
  • Empty (let the user choose)

type="object"
string="Create Task"
class="oe_stat_button"
groups="project.group_project_user"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue: salespersons cannot convert to task if they don't have project permissions.

Image
Suggested change
groups="project.group_project_user"

Salespeople should be able to perform the conversion (not the linking).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants