TIP: You can type at any time to perform a new search.
CRM Lead Product
crm_lead_product · OCA/crm
- Repository
- OCA/crm · module folder · Try on Runboat
- Module version
- 1.0.1
- Category
- Customer Relationship Management
- Folder size
- 0.15 MB
- License
- LGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/crm
- Last tracking update
- 2026-08-07 08:42:48
- Authors
- Odoo Community Association (OCA), ForgeFlow
- Maintainers
- Odoo Community Association (OCA), ForgeFlow
- Committers
- Enric Tobella, Weblate, OCA-git-bot, oca-ci, joelkm, Frédéric GRALL
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
- Description
This module allows the user to link multiple products, product categories or product templates to a lead or an opportunity in order to be able to do a product demand forecasting taking into account the leads and opportunities defined in Odoo. Included in the product line there are two computed fields, the expected revenue and prorated revenue. On one hand, the expected revenue is computed as the selling price times the quantity. On the other hand, the prorated revenue takes into account the probability of the opportunity and is computed as the planned revenue times the probability. The module also includes a reporting section where the user can easily see in a pivot and graph view the relationship between products, stage of the lead/opportunity and the expected or prorated revenue for that product.
Code Analysis ⓘ
Views touched (6)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
crm_lead_view_form |
crm.lead.form - crm_lead_product | crm.lead | form | Inherits crm.crm_lead_view_form |
crm_opportunity_report_view_graph |
crm.opportunity.report.graph | crm.product.report | graph | New |
crm_opportunity_report_view_pivot |
crm.opportunity.report.pivot | crm.product.report | pivot | New |
crm_opportunity_report_view_search |
crm.lead.search | crm.product.report | search | New |
crm_opportunity_report_view_tree |
crm.opportunity.report.list | crm.product.report | list | New |
view_tree_lead_line |
crm.lead.line.tree - crm_lead_product | crm.lead.line | list | New |
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (3)
New fields (1)
-
lead_line_idsOne2many → crm.lead.linecomodel_name='crm.lead.line'inverse_name='lead_id'string='Lead Lines'
No public methods.
New fields (11)
-
category_idMany2one → product.categoryindex=Truestring='Product Category' args: 'product.category' -
company_currencyMany2one → res.currencyreadonly=Truerelated='lead_id.company_currency'string='Currency' args: 'res.currency' -
expected_revenueMonetarycompute='_compute_expected_revenue'compute_sudo=Truecurrency_field='company_currency'store=Truestring='Expected revenue' -
lead_idMany2one → crm.leadstring='Lead' args: 'crm.lead' -
nameCharrequired=Truetranslate=True args: 'Description' -
price_unitFloatdigits='Product Price' -
product_idMany2one → product.productdomain=[('sale_ok', '=', True)]index=Truestring='Product' args: 'product.product' -
product_qtyIntegerdefault=1required=Truestring='Product Quantity' -
product_tmpl_idMany2one → product.templateindex=Truestring='Product Template' args: 'product.template' -
prorated_revenueMonetarycompute='_compute_prorated_revenue'compute_sudo=Truecurrency_field='company_currency'store=Truestring='Prorated revenue' -
uom_idMany2one → uom.uomreadonly=Truestring='Unit of Measure' args: 'uom.uom'
No public methods.
New fields (24)
-
activeBooleanreadonly=True -
campaign_idMany2one → utm.campaignreadonly=True args: 'utm.campaign', 'Campaing' -
category_idMany2one → product.categoryreadonly=True args: 'product.category', 'Category' -
company_idMany2one → res.companyreadonly=True args: 'res.company', 'Company' -
country_idMany2one → res.countryreadonly=True args: 'res.country', 'Country' -
create_dateDatetimereadonly=True -
date_closedDatetimereadonly=True args: 'Closed Date' -
date_conversionDatetimereadonly=True args: 'Conversion Date' -
date_deadlineDatetimereadonly=True args: 'Deadline Date' -
date_openDatetimereadonly=True args: 'Open Date' -
expected_revenueFloatreadonly=True -
lost_reason_idMany2one → crm.lost.reasonreadonly=True args: 'crm.lost.reason' -
nameCharreadonly=True args: 'Lead Name' -
partner_idMany2one → res.partnerreadonly=True args: 'res.partner', 'Partner/Customer' -
partner_nameCharreadonly=True args: 'Contact Name' -
probabilityFloataggregator='avg'readonly=True -
product_idMany2one → product.productreadonly=True args: 'product.product', 'Product' -
product_qtyIntegerreadonly=True args: 'Product Quantity' -
product_tmpl_idMany2one → product.templatereadonly=True args: 'product.template', 'Product Template' -
prorated_revenueFloatreadonly=True -
stage_idMany2one → crm.stagereadonly=True args: 'crm.stage', 'Stage' -
team_idMany2one → crm.teamreadonly=True args: 'crm.team', 'Sales Team' -
typeSelectionhelp='Type is used to separate Leads and Opportunities' args: [('lead', 'Lead'), ('opportunity', 'Opportunity')] -
user_idMany2one → res.usersreadonly=True args: 'res.users', 'Salesperson'
-
init(self)
Loading…
Loading…
Loading…
Loading…
Loading…
- Status
- Open migration PR — not merged yet for this version
- CI status
- checks failing
- Open since
- 126 days ago
- Last activity
- 106 days ago
- Repository
- OCA/crm
- Pull request
- [MIG] [19.0] crm_lead_product: Migration to 19.0 (#739)