Repository
OCA/account-budgeting · module folder · Try on Runboat
Module version
1.0
Category
Generic Modules/Accounting
Folder size
0.03 MB
License
LGPL-3
Application
No
Auto-installable
No
Website
http://camptocamp.com
Last tracking update
2026-08-07 07:17:52
Authors
Camptocamp, Odoo Community Association (OCA)
Maintainers
Camptocamp, Odoo Community Association (OCA)
Committers
Pedro M. Baeza
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
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.
    

Code Analysis

Views touched (8)
XML IDNameModelTypeStatus
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)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

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.

New fields (0)

No new fields.

Public methods (1)
  • do_compute(self, cr, uid, ids, context=None)

New fields (0)

No new fields.

Public methods (0)

No public methods.

Loading…

Loading…

Loading…