CRM Lead Product
crm_lead_product · OCA/crm
-
Security25/25No findings
-
Activity12/25Last human commit 19 months ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 6 Odoo series since 11.0
Heuristic over the facts below, not an audit · How it's computed
Migration considerations
crm.product.report— Model 'crm.product.report' has `_auto = False` and its init() (re)creates a SQL VIEW: the standard reporting-model pattern, but its raw SQL isn't checked by the ORM - verify it against renamed/removed tables and columns in the target version. migration-sql-view
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
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.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
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
-
lead_line_idsOne2many → crm.lead.linecomodel_name='crm.lead.line'inverse_name='lead_id'string='Lead Lines'
No public methods.
-
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.
-
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…