Skip to content

[ADD] crm_mention_leads: Generate leads from internet mentions and optimize lead creation#1338

Draft
Arbaaz-Khan-Tech wants to merge 2 commits into
odoo:19.0from
odoo-dev:odoo-dev-19.0-crm-lead-mentions-asurk
Draft

[ADD] crm_mention_leads: Generate leads from internet mentions and optimize lead creation#1338
Arbaaz-Khan-Tech wants to merge 2 commits into
odoo:19.0from
odoo-dev:odoo-dev-19.0-crm-lead-mentions-asurk

Conversation

@Arbaaz-Khan-Tech

Copy link
Copy Markdown

Overview

This PR introduces the crm_mention_leads module, enabling automatic lead generation from relevant internet mentions.

Features

  • Introduces a new CRM lead generation module based on internet mentions.
  • Fetches relevant posts from external sources through an API.
  • Scores retrieved mentions to identify potential sales opportunities.
  • Generates CRM leads from qualified mentions.

Improvements

  • Refactors the lead processing flow to reduce the number of API calls.
  • Replaces per-record lead creation with bulk lead creation.
  • Reduces ORM overhead and improves overall performance when processing large batches of mentions.

…entions

-   Introduces a new module designed to generate leads.
-   Leads are sourced from internet mentions.
-   Utilizes an API to fetch relevant posts from the internet.
-   Includes functionality to score these fetched posts.
-   Generates new leads based on the scoring results.
@robodoo

robodoo commented Jun 12, 2026

Copy link
Copy Markdown

Pull request status dashboard

@Arbaaz-Khan-Tech Arbaaz-Khan-Tech marked this pull request as draft June 12, 2026 10:23

@mash-odoo mash-odoo left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hello!
Very good job on this task creation first of all!
Something interesting to look into. 🐣
I have done initial review as of now.
Have a look at the comments!

Comment thread crm_mention_leads/__manifest__.py Outdated
Comment thread crm_mention_leads/__manifest__.py Outdated
Comment thread crm_mention_leads/__manifest__.py Outdated
Comment thread crm_mention_leads/models/crm_mention_job.py Outdated
Comment thread crm_mention_leads/models/crm_mention_job.py Outdated
Comment thread crm_mention_leads/data/cron_job.xml


class CrmMentionJob(models.Model):
_name = 'crm.mention.job'

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I feel that this model doesn't store records.
I think it's acting more like a service class.
So maybe you can use here models.AbstractModel?

Comment thread crm_mention_leads/models/crm_mention_log.py Outdated
@Arbaaz-Khan-Tech Arbaaz-Khan-Tech force-pushed the odoo-dev-19.0-crm-lead-mentions-asurk branch 4 times, most recently from 663c515 to af7b13d Compare June 19, 2026 06:19
    - Modified the logic to decrease the no of api calls
    - Instead of appending one lead to crm model now the logic add leads in bulk to reduce orm calls
@Arbaaz-Khan-Tech Arbaaz-Khan-Tech force-pushed the odoo-dev-19.0-crm-lead-mentions-asurk branch from af7b13d to ac8fab4 Compare June 19, 2026 07:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants