Budget CRM
budget_crm · OCA/account-budgeting
-
Security25/25No findings
-
Activity0/25Last human commit 122 months ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 4 Odoo series since 7.0
Heuristic over the facts below, not an audit · How it's computed
License review
- budget_crm (LGPL-3) depends on analytic_multicurrency (AGPL-3): combined with its dependencies it must be distributed under AGPL-3, including offering the source to users of a hosted instance. LICENSE_EFFECTIVE_UPGRADE
Based on the manifest licenses of this module and everything it depends on: a heuristic to spot problems early, not legal advice. Methodology
Migration considerations
BudgetLine— Class 'BudgetLine' still inherits from the old-style `orm.Model` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. migration-old-api-base · sourceBudgetLine— Class 'BudgetLine' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourceCompany— Class 'Company' still inherits from the old-style `orm.Model` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. migration-old-api-base · sourceCompany— Class 'Company' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourceCrmToBudgetWizard— Class 'CrmToBudgetWizard' still inherits from the old-style `orm.TransientModel` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. migration-old-api-base · sourceLead— Class 'Lead' still inherits from the old-style `orm.Model` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. migration-old-api-base · sourceLead— Class 'Lead' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. (2 occurrences in this file) migration-old-style-fields · sourceSalesTeam— Class 'SalesTeam' still inherits from the old-style `orm.Model` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. migration-old-api-base · sourceSalesTeam— Class 'SalesTeam' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourceStage— Class 'Stage' still inherits from the old-style `orm.Model` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. migration-old-api-base · sourceStage— Class 'Stage' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · source- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) (3 occurrences in this file) migration-openerp-import · source
- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) migration-openerp-import · source
- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) migration-openerp-import · source
- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) migration-openerp-import · source
- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) migration-openerp-import · source
- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) migration-openerp-import · source
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
Budget CRM
This module depends on the OCA module "budget", not on the Odoo core account_budget module.
It provides a link in the drop down menu of the Opportunities to generate automatically budget lines from them.
The information used to generate the budget lines is found as follows:
- The active Budget Version is the one selected in the Company
- The number of lines to generate comes from the Months field of the Opportunity
- The amount of every line is the expected revenue of the Opportunity, divided by the number of months
- The first line starts on the 1st of the month after the Expected Date of the Opportunity and ends on the last day of the month
- The other lines start end end in the following months
- The name comes from the name of the opportunity, with also the year and month.
- The Analytic Account comes from the Lead, where by default it comes from the Sales Team
- The Budget Item comes from the Lead, where by default it comes from the Stage.
- The Currency comes from the current Budget Version (in the Company)
The generated Budget Lines are linked to the Opportunity and can be seen in the new Budget tab. They can coexist vith existing budget lines in the same Version.
The next time the synchronization is run, the budget lines previously linked to the Opportunity are deleted. Existing lines are not affected.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 8
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
budget_line_form |
budget.line | form | Inherits budget.view_budget_line_form | |
company_form |
res.company | form | Inherits base.view_company_form | |
crm_case_kanban_view_oppor_curr |
Opportunities | crm.lead | kanban | Inherits crm.crm_case_kanban_view_leads |
crm_case_tree_view_oppor_curr |
Opportunities Tree | crm.lead | tree | Inherits crm.crm_case_tree_view_oppor |
crm_to_budget_wizard_form |
crm.to.budget.wizard | form | New | |
opportunity_form |
crm.lead | form | Inherits crm.crm_case_form_view_oppor | |
stage_form |
crm.case.stage | form | Inherits crm.crm_case_stage_form | |
team_form |
crm.case.section | form | Inherits crm.crm_case_section_view_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 6
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (1)-
write(self, cr, uid, ids, vals, context=None)Get the budget item from the stage. The clickable progressbar does not run on_change, apparently.
No new fields.
Public methods (1)-
do_compute(self, cr, uid, ids, context=None)
No new fields.
Public methods (0)No public methods.
Loading…
Loading…
Loading…