[ADD] crm_mention_leads: Generate leads from internet mentions and optimize lead creation#1338
Draft
Arbaaz-Khan-Tech wants to merge 2 commits into
Draft
[ADD] crm_mention_leads: Generate leads from internet mentions and optimize lead creation#1338Arbaaz-Khan-Tech wants to merge 2 commits into
Arbaaz-Khan-Tech wants to merge 2 commits into
Conversation
…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.
mash-odoo
requested changes
Jun 16, 2026
mash-odoo
left a comment
There was a problem hiding this comment.
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!
|
|
||
|
|
||
| class CrmMentionJob(models.Model): | ||
| _name = 'crm.mention.job' |
There was a problem hiding this comment.
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?
663c515 to
af7b13d
Compare
- 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
af7b13d to
ac8fab4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Overview
This PR introduces the
crm_mention_leadsmodule, enabling automatic lead generation from relevant internet mentions.Features
Improvements