diff --git a/addons/account_budget/__init__.py b/addons/account_budget/__init__.py
index d84fb182e8f..81fc81d29c9 100644
--- a/addons/account_budget/__init__.py
+++ b/addons/account_budget/__init__.py
@@ -2,5 +2,3 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import models
-import report
-import wizard
diff --git a/addons/account_budget/__openerp__.py b/addons/account_budget/__openerp__.py
index 889b2f9111b..289edb993a6 100644
--- a/addons/account_budget/__openerp__.py
+++ b/addons/account_budget/__openerp__.py
@@ -32,18 +32,10 @@ Three reports are available:
'depends': ['account'],
'data': [
'data/account_budget_workflow.xml',
- 'report/account_budget_report.xml',
- 'report/analytic_account_budget_report_templates.xml',
- 'report/budget_report_templates.xml',
- 'report/crossovered_budget_report_templates.xml',
'security/ir.model.access.csv',
'security/account_budget_security.xml',
'views/account_analytic_account_views.xml',
'views/account_budget_views.xml',
- 'wizard/account_budget_analytic_views.xml',
- 'wizard/account_budget_report_views.xml',
- 'wizard/account_budget_crossovered_summary_report_views.xml',
- 'wizard/account_budget_crossovered_report_views.xml',
],
'demo': ['data/account_budget_demo.xml', 'data/account_budget_demo.yml'],
'test': [
diff --git a/addons/account_budget/report/__init__.py b/addons/account_budget/report/__init__.py
deleted file mode 100644
index 8130feaa4b7..00000000000
--- a/addons/account_budget/report/__init__.py
+++ /dev/null
@@ -1,6 +0,0 @@
-# -*- coding: utf-8 -*-
-# Part of Odoo. See LICENSE file for full copyright and licensing details.
-
-import crossovered_budget_report
-import analytic_account_budget_report
-import budget_report
diff --git a/addons/account_budget/report/account_budget_report.xml b/addons/account_budget/report/account_budget_report.xml
deleted file mode 100644
index 7855deb9ccc..00000000000
--- a/addons/account_budget/report/account_budget_report.xml
+++ /dev/null
@@ -1,34 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/addons/account_budget/report/analytic_account_budget_report.py b/addons/account_budget/report/analytic_account_budget_report.py
deleted file mode 100644
index 265a76e6b3e..00000000000
--- a/addons/account_budget/report/analytic_account_budget_report.py
+++ /dev/null
@@ -1,156 +0,0 @@
-# -*- coding: utf-8 -*-
-# Part of Odoo. See LICENSE file for full copyright and licensing details.
-
-import time
-from openerp.osv import osv
-from openerp.report import report_sxw
-
-
-class analytic_account_budget_report(report_sxw.rml_parse):
- def __init__(self, cr, uid, name, context):
- super(analytic_account_budget_report, self).__init__(cr, uid, name, context=context)
- self.localcontext.update( {
- 'funct': self.funct,
- 'funct_total': self.funct_total,
- 'time': time,
- })
- self.context = context
-
- def funct(self, object, form, ids=None, done=None, level=1):
- if ids is None:
- ids = {}
- if not ids:
- ids = self.ids
- if not done:
- done = {}
-
- global tot
- tot = {
- 'theo':0.00,
- 'pln':0.00,
- 'prac':0.00,
- 'perc':0.00
- }
- result = []
- accounts = self.pool.get('account.analytic.account').browse(self.cr, self.uid, [object.id], self.context.copy())
- c_b_lines_obj = self.pool.get('crossovered.budget.lines')
- obj_c_budget = self.pool.get('crossovered.budget')
-
- for account_id in accounts:
- res = {}
- b_line_ids = []
- for line in account_id.crossovered_budget_line:
- b_line_ids.append(line.id)
- if not b_line_ids:
- return []
- d_from = form['date_from']
- d_to = form['date_to']
-
- self.cr.execute('SELECT DISTINCT(crossovered_budget_id) FROM crossovered_budget_lines WHERE id =ANY(%s)',(b_line_ids,))
- budget_ids = self.cr.fetchall()
-
- context = {'wizard_date_from':d_from,'wizard_date_to':d_to}
- for i in range(0, len(budget_ids)):
- budget_name = obj_c_budget.browse(self.cr, self.uid, [budget_ids[i][0]])
- res= {
- 'b_id':'-1',
- 'a_id':'-1',
- 'name':budget_name[0].name,
- 'status':1,
- 'theo':0.00,
- 'pln':0.00,
- 'prac':0.00,
- 'perc':0.00
- }
- result.append(res)
-
- line_ids = c_b_lines_obj.search(self.cr, self.uid, [('id', 'in', b_line_ids), ('crossovered_budget_id','=',budget_ids[i][0])])
- line_id = c_b_lines_obj.browse(self.cr, self.uid, line_ids)
- tot_theo = tot_pln = tot_prac = tot_perc = 0
-
- done_budget = []
- for line in line_id:
- if line.id in b_line_ids:
- theo = pract = 0.00
- theo = c_b_lines_obj._theo_amt(self.cr, self.uid, [line.id], context)[line.id]
- pract = c_b_lines_obj._prac_amt(self.cr, self.uid, [line.id], context)[line.id]
- if line.general_budget_id.id in done_budget:
- for record in result:
- if record['b_id'] == line.general_budget_id.id and record['a_id'] == line.analytic_account_id.id:
- record['theo'] += theo
- record['pln'] += line.planned_amount
- record['prac'] += pract
- record['perc'] += line.percentage
- tot_theo += theo
- tot_pln += line.planned_amount
- tot_prac += pract
- tot_perc += line.percentage
- else:
- res1 = {
- 'b_id': line.general_budget_id.id,
- 'a_id': line.analytic_account_id.id,
- 'name': line.general_budget_id.name,
- 'status': 2,
- 'theo': theo,
- 'pln': line.planned_amount,
- 'prac': pract,
- 'perc': line.percentage
- }
- tot_theo += theo
- tot_pln += line.planned_amount
- tot_prac += pract
- tot_perc += line.percentage
- result.append(res1)
- done_budget.append(line.general_budget_id.id)
- else:
- if line.general_budget_id.id in done_budget:
- continue
- else:
- res1={
- 'b_id': line.general_budget_id.id,
- 'a_id': line.analytic_account_id.id,
- 'name': line.general_budget_id.name,
- 'status': 2,
- 'theo': 0.00,
- 'pln': 0.00,
- 'prac': 0.00,
- 'perc': 0.00
- }
- result.append(res1)
- done_budget.append(line.general_budget_id.id)
- if tot_theo == 0.00:
- tot_perc = 0.00
- else:
- tot_perc = float(tot_prac / tot_theo) * 100
-
- result[-(len(done_budget) +1)]['theo'] = tot_theo
- tot['theo'] +=tot_theo
- result[-(len(done_budget) +1)]['pln'] = tot_pln
- tot['pln'] +=tot_pln
- result[-(len(done_budget) +1)]['prac'] = tot_prac
- tot['prac'] +=tot_prac
- result[-(len(done_budget) +1)]['perc'] = tot_perc
- if tot['theo'] == 0.00:
- tot['perc'] = 0.00
- else:
- tot['perc'] = float(tot['prac'] / tot['theo']) * 100
- return result
-
- def funct_total(self, form):
- result = []
- res = {}
- res = {
- 'tot_theo': tot['theo'],
- 'tot_pln': tot['pln'],
- 'tot_prac': tot['prac'],
- 'tot_perc': tot['perc']
- }
- result.append(res)
- return result
-
-
-class report_analyticaccountbudget(osv.AbstractModel):
- _name = 'report.account_budget.report_analyticaccountbudget'
- _inherit = 'report.abstract_report'
- _template = 'account_budget.report_analyticaccountbudget'
- _wrapped_report_class = analytic_account_budget_report
diff --git a/addons/account_budget/report/analytic_account_budget_report_templates.xml b/addons/account_budget/report/analytic_account_budget_report_templates.xml
deleted file mode 100644
index dab987d6099..00000000000
--- a/addons/account_budget/report/analytic_account_budget_report_templates.xml
+++ /dev/null
@@ -1,69 +0,0 @@
-
-
-
-
-
-
-
-
-
Analytic Budget
-
-
-
-
-
-
- | Description |
- Theoretical Amt |
- Planned Amt |
- Practical Amt |
- Perc(%) |
-
-
-
-
-
- |
- |
- |
- |
- % |
-
-
- |
- |
- |
- |
- % |
-
-
-
- | Total: |
- |
- |
- |
- % |
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/addons/account_budget/report/budget_report.py b/addons/account_budget/report/budget_report.py
deleted file mode 100644
index cc2274c2eea..00000000000
--- a/addons/account_budget/report/budget_report.py
+++ /dev/null
@@ -1,178 +0,0 @@
-# -*- coding: utf-8 -*-
-# Part of Odoo. See LICENSE file for full copyright and licensing details.
-
-import time
-from openerp.osv import osv
-from openerp.report import report_sxw
-
-tot = {}
-
-class budget_report(report_sxw.rml_parse):
- def __init__(self, cr, uid, name, context):
- super(budget_report, self).__init__(cr, uid, name, context=context)
- self.localcontext.update({
- 'funct': self.funct,
- 'funct_total': self.funct_total,
- 'time': time,
- })
- self.context = context
-
- def funct(self, object, form, ids=None, done=None, level=1):
- if ids is None:
- ids = {}
- if not ids:
- ids = self.ids
- if not done:
- done = {}
- global tot
- tot = {
- 'theo':0.00,
- 'pln':0.00,
- 'prac':0.00,
- 'perc':0.00
- }
- result = []
-
- budgets = self.pool.get('account.budget.post').browse(self.cr, self.uid, [object.id], self.context.copy())
- c_b_lines_obj = self.pool.get('crossovered.budget.lines')
- acc_analytic_obj = self.pool.get('account.analytic.account')
- for budget_id in budgets:
- res = {}
- budget_ids = []
- d_from = form['date_from']
- d_to = form['date_to']
-
- for line in budget_id.crossovered_budget_line:
- budget_ids.append(line.id)
-
- if not budget_ids:
- return []
- self.cr.execute('SELECT DISTINCT(analytic_account_id) FROM crossovered_budget_lines WHERE id = ANY(%s)',(budget_ids,))
- an_ids = self.cr.fetchall()
-
- context = {'wizard_date_from': d_from, 'wizard_date_to': d_to}
- for i in range(0, len(an_ids)):
- if not an_ids[i][0]:
- continue
- analytic_name = acc_analytic_obj.browse(self.cr, self.uid, [an_ids[i][0]])
- res={
- 'b_id': '-1',
- 'a_id': '-1',
- 'name': analytic_name[0].name,
- 'status': 1,
- 'theo': 0.00,
- 'pln': 0.00,
- 'prac': 0.00,
- 'perc': 0.00
- }
- result.append(res)
-
- line_ids = c_b_lines_obj.search(self.cr, self.uid, [('id', 'in', budget_ids), ('analytic_account_id','=',an_ids[i][0])])
- line_id = c_b_lines_obj.browse(self.cr, self.uid, line_ids)
- tot_theo = tot_pln = tot_prac = tot_perc = 0.00
-
- done_budget = []
- for line in line_id:
- if line.id in budget_ids:
- theo = pract = 0.00
- theo = c_b_lines_obj._theo_amt(self.cr, self.uid, [line.id], context)[line.id]
- pract = c_b_lines_obj._prac_amt(self.cr, self.uid, [line.id], context)[line.id]
- if line.general_budget_id.id in done_budget:
- for record in result:
- if record['b_id'] == line.general_budget_id.id and record['a_id'] == line.analytic_account_id.id:
- record['theo'] += theo
- record['pln'] += line.planned_amount
- record['prac'] += pract
- if record['theo'] <> 0.00:
- perc = (record['prac'] / record['theo']) * 100
- else:
- perc = 0.00
- record['perc'] = perc
- tot_theo += theo
- tot_pln += line.planned_amount
- tot_prac += pract
- tot_perc += perc
- else:
- if theo <> 0.00:
- perc = (pract / theo) * 100
- else:
- perc = 0.00
- res1 = {
- 'a_id': line.analytic_account_id.id,
- 'b_id': line.general_budget_id.id,
- 'name': line.general_budget_id.name,
- 'status': 2,
- 'theo': theo,
- 'pln': line.planned_amount,
- 'prac': pract,
- 'perc': perc,
- }
- tot_theo += theo
- tot_pln += line.planned_amount
- tot_prac += pract
- tot_perc += perc
- if form['report'] == 'analytic-full':
- result.append(res1)
- done_budget.append(line.general_budget_id.id)
- else:
-
- if line.general_budget_id.id in done_budget:
- continue
- else:
- res1={
- 'a_id': line.analytic_account_id.id,
- 'b_id': line.general_budget_id.id,
- 'name': line.general_budget_id.name,
- 'status': 2,
- 'theo': 0.00,
- 'pln': 0.00,
- 'prac': 0.00,
- 'perc': 0.00
- }
- if form['report'] == 'analytic-full':
- result.append(res1)
- done_budget.append(line.general_budget_id.id)
- if tot_theo == 0.00:
- tot_perc = 0.00
- else:
- tot_perc = float(tot_prac / tot_theo) * 100
- if form['report'] == 'analytic-full':
- result[-(len(done_budget) +1)]['theo'] = tot_theo
- tot['theo'] += tot_theo
- result[-(len(done_budget) +1)]['pln'] = tot_pln
- tot['pln'] += tot_pln
- result[-(len(done_budget) +1)]['prac'] = tot_prac
- tot['prac'] += tot_prac
- result[-(len(done_budget) +1)]['perc'] = tot_perc
- else:
- result[-1]['theo'] = tot_theo
- tot['theo'] += tot_theo
- result[-1]['pln'] = tot_pln
- tot['pln'] += tot_pln
- result[-1]['prac'] = tot_prac
- tot['prac'] += tot_prac
- result[-1]['perc'] = tot_perc
- if tot['theo'] == 0.00:
- tot['perc'] = 0.00
- else:
- tot['perc'] = float(tot['prac'] / tot['theo']) * 100
- return result
-
- def funct_total(self, form):
- result = []
- res = {}
- res = {
- 'tot_theo': tot['theo'],
- 'tot_pln': tot['pln'],
- 'tot_prac': tot['prac'],
- 'tot_perc': tot['perc']
- }
- result.append(res)
- return result
-
-
-class report_budget(osv.AbstractModel):
- _name = 'report.account_budget.report_budget'
- _inherit = 'report.abstract_report'
- _template = 'account_budget.report_budget'
- _wrapped_report_class = budget_report
diff --git a/addons/account_budget/report/budget_report_templates.xml b/addons/account_budget/report/budget_report_templates.xml
deleted file mode 100644
index 6bc72fc9dca..00000000000
--- a/addons/account_budget/report/budget_report_templates.xml
+++ /dev/null
@@ -1,77 +0,0 @@
-
-
-
-
-
-
-
-
-
Budget
-
-
-
-
-
Analysis from:
-
to
-
-
-
-
-
-
-
-
- | Description |
- Theoretical Amount |
- Planned Amount |
- Practical Amount |
- Perc(%) |
-
-
-
-
-
-
- |
-
-
- |
- |
- |
- % |
-
-
-
- |
- |
- |
- |
- % |
-
-
-
- | Total: |
- |
- |
- |
- % |
-
-
-
-
-
-
-
-
-
-
diff --git a/addons/account_budget/report/crossovered_budget_report.py b/addons/account_budget/report/crossovered_budget_report.py
deleted file mode 100644
index efee247fd13..00000000000
--- a/addons/account_budget/report/crossovered_budget_report.py
+++ /dev/null
@@ -1,179 +0,0 @@
-# -*- coding: utf-8 -*-
-# Part of Odoo. See LICENSE file for full copyright and licensing details.
-
-import time
-from openerp.osv import osv
-from openerp.report import report_sxw
-
-
-class budget_report(report_sxw.rml_parse):
- def __init__(self, cr, uid, name, context):
- super(budget_report, self).__init__(cr, uid, name, context=context)
- self.localcontext.update({
- 'funct': self.funct,
- 'funct_total': self.funct_total,
- 'time': time,
- })
- self.context = context
-
- def funct(self, object, form, ids=None, done=None, level=1):
- if ids is None:
- ids = {}
- if not ids:
- ids = self.ids
- if not done:
- done = {}
- global tot
- tot = {
- 'theo':0.00,
- 'pln':0.00,
- 'prac':0.00,
- 'perc':0.00
- }
- result = []
-
- budgets = self.pool.get('crossovered.budget').browse(self.cr, self.uid, [object.id], self.context.copy())
- c_b_lines_obj = self.pool.get('crossovered.budget.lines')
- acc_analytic_obj = self.pool.get('account.analytic.account')
- for budget_id in budgets:
- res = {}
- budget_lines = []
- budget_ids = []
- d_from = form['date_from']
- d_to = form['date_to']
-
- for line in budget_id.crossovered_budget_line:
- budget_ids.append(line.id)
-
- if not budget_ids:
- return []
-
- self.cr.execute('SELECT DISTINCT(analytic_account_id) FROM crossovered_budget_lines WHERE id = ANY(%s)',(budget_ids,))
- an_ids = self.cr.fetchall()
-
- context = {'wizard_date_from': d_from, 'wizard_date_to': d_to}
- for i in range(0, len(an_ids)):
- if not an_ids[i][0]:
- continue
- analytic_name = acc_analytic_obj.browse(self.cr, self.uid, [an_ids[i][0]])
- res={
- 'b_id': '-1',
- 'a_id': '-1',
- 'name': analytic_name[0].name,
- 'status': 1,
- 'theo': 0.00,
- 'pln': 0.00,
- 'prac': 0.00,
- 'perc': 0.00
- }
- result.append(res)
-
- line_ids = c_b_lines_obj.search(self.cr, self.uid, [('id', 'in', budget_ids), ('analytic_account_id','=',an_ids[i][0]), ('date_to', '>=', d_from), ('date_from', '<=', d_to)])
- line_id = c_b_lines_obj.browse(self.cr, self.uid, line_ids)
- tot_theo = tot_pln = tot_prac = tot_perc = 0.00
-
- done_budget = []
- for line in line_id:
- if line.id in budget_ids:
- theo = pract = 0.00
- theo = c_b_lines_obj._theo_amt(self.cr, self.uid, [line.id], context)[line.id]
- pract = c_b_lines_obj._prac_amt(self.cr, self.uid, [line.id], context)[line.id]
- if line.general_budget_id.id in done_budget:
- for record in result:
- if record['b_id'] == line.general_budget_id.id and record['a_id'] == line.analytic_account_id.id:
- record['theo'] += theo
- record['pln'] += line.planned_amount
- record['prac'] += pract
- if record['theo'] <> 0.00:
- perc = (record['prac'] / record['theo']) * 100
- else:
- perc = 0.00
- record['perc'] = perc
- tot_theo += theo
- tot_pln += line.planned_amount
- tot_prac += pract
- tot_perc += perc
- else:
- if theo <> 0.00:
- perc = (pract / theo) * 100
- else:
- perc = 0.00
- res1 = {
- 'a_id': line.analytic_account_id.id,
- 'b_id': line.general_budget_id.id,
- 'name': line.general_budget_id.name,
- 'status': 2,
- 'theo': theo,
- 'pln': line.planned_amount,
- 'prac': pract,
- 'perc': perc,
- }
- tot_theo += theo
- tot_pln += line.planned_amount
- tot_prac += pract
- tot_perc += perc
- if form['report'] == 'analytic-full':
- result.append(res1)
- done_budget.append(line.general_budget_id.id)
- else:
-
- if line.general_budget_id.id in done_budget:
- continue
- else:
- res1={
- 'a_id': line.analytic_account_id.id,
- 'b_id': line.general_budget_id.id,
- 'name': line.general_budget_id.name,
- 'status': 2,
- 'theo': 0.00,
- 'pln': 0.00,
- 'prac': 0.00,
- 'perc': 0.00
- }
- if form['report'] == 'analytic-full':
- result.append(res1)
- done_budget.append(line.general_budget_id.id)
- if tot_theo == 0.00:
- tot_perc = 0.00
- else:
- tot_perc = float(tot_prac / tot_theo) * 100
- if form['report'] == 'analytic-full':
- result[-(len(done_budget) +1)]['theo'] = tot_theo
- tot['theo'] += tot_theo
- result[-(len(done_budget) +1)]['pln'] = tot_pln
- tot['pln'] += tot_pln
- result[-(len(done_budget) +1)]['prac'] = tot_prac
- tot['prac'] += tot_prac
- result[-(len(done_budget) +1)]['perc'] = tot_perc
- else:
- result[-1]['theo'] = tot_theo
- tot['theo'] += tot_theo
- result[-1]['pln'] = tot_pln
- tot['pln'] += tot_pln
- result[-1]['prac'] = tot_prac
- tot['prac'] += tot_prac
- result[-1]['perc'] = tot_perc
- if tot['theo'] == 0.00:
- tot['perc'] = 0.00
- else:
- tot['perc'] = float(tot['prac'] / tot['theo']) * 100
- return result
-
- def funct_total(self, form):
- result = []
- res = {}
- res = {
- 'tot_theo': tot['theo'],
- 'tot_pln': tot['pln'],
- 'tot_prac': tot['prac'],
- 'tot_perc': tot['perc']
- }
- result.append(res)
- return result
-
-
-class report_crossoveredbudget(osv.AbstractModel):
- _name = 'report.account_budget.report_crossoveredbudget'
- _inherit = 'report.abstract_report'
- _template = 'account_budget.report_crossoveredbudget'
- _wrapped_report_class = budget_report
diff --git a/addons/account_budget/report/crossovered_budget_report_templates.xml b/addons/account_budget/report/crossovered_budget_report_templates.xml
deleted file mode 100644
index 412c2aac8ed..00000000000
--- a/addons/account_budget/report/crossovered_budget_report_templates.xml
+++ /dev/null
@@ -1,81 +0,0 @@
-
-
-
-
-
-
-
-
-
Budget
-
-
-
-
Analysis from:
-
to
-
-
-
-
-
-
-
-
-
- | Description |
- Theoretical Amt |
- Planned Amt |
- Practical Amt |
- Perc(%) |
-
-
-
-
- |
-
-
- |
-
-
- |
-
-
- |
-
-
- |
-
- %
- |
-
-
- |
- Total:
- |
-
-
- |
-
-
- |
-
-
- |
-
- %
- |
-
-
-
-
-
-
-
-
-
-
diff --git a/addons/account_budget/wizard/__init__.py b/addons/account_budget/wizard/__init__.py
deleted file mode 100644
index 698cc18a1b5..00000000000
--- a/addons/account_budget/wizard/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# -*- coding: utf-8 -*-
-# Part of Odoo. See LICENSE file for full copyright and licensing details.
-
-import account_budget_crossovered_report
-import account_budget_analytic
-import account_budget_crossovered_summary_report
-import account_budget_report
diff --git a/addons/account_budget/wizard/account_budget_analytic.py b/addons/account_budget/wizard/account_budget_analytic.py
deleted file mode 100644
index 811ea4a4e29..00000000000
--- a/addons/account_budget/wizard/account_budget_analytic.py
+++ /dev/null
@@ -1,31 +0,0 @@
- # -*- coding: utf-8 -*-
-# Part of Odoo. See LICENSE file for full copyright and licensing details.
-
-import time
-from openerp.osv import fields, osv
-
-
-class account_budget_analytic(osv.osv_memory):
-
- _name = 'account.budget.analytic'
- _description = 'Account Budget report for analytic account'
- _columns = {
- 'date_from': fields.date('Start of period', required=True),
- 'date_to': fields.date('End of period', required=True),
- }
- _defaults = {
- 'date_from': lambda *a: time.strftime('%Y-01-01'),
- 'date_to': lambda *a: time.strftime('%Y-%m-%d'),
- }
-
- def check_report(self, cr, uid, ids, context=None):
- if context is None:
- context = {}
- data = self.read(cr, uid, ids, context=context)[0]
- datas = {
- 'ids': context.get('active_ids', []),
- 'model': 'account.analytic.account',
- 'form': data
- }
- datas['form']['ids'] = datas['ids']
- return self.pool['report'].get_action(cr, uid, [], 'account_budget.report_analyticaccountbudget', data=datas, context=context)
diff --git a/addons/account_budget/wizard/account_budget_analytic_views.xml b/addons/account_budget/wizard/account_budget_analytic_views.xml
deleted file mode 100644
index ae4a6e074b8..00000000000
--- a/addons/account_budget/wizard/account_budget_analytic_views.xml
+++ /dev/null
@@ -1,42 +0,0 @@
-
-
-
-
-
- account.budget.analytic.form
- account.budget.analytic
-
-
-
-
-
-
- Print Budgets
- ir.actions.act_window
- account.budget.analytic
- form
- form
-
- new
-
-
-
-
- Print Budgets
- client_print_multi
-
- action
- account.analytic.account
-
-
-
-
diff --git a/addons/account_budget/wizard/account_budget_crossovered_report.py b/addons/account_budget/wizard/account_budget_crossovered_report.py
deleted file mode 100644
index b98998acf0a..00000000000
--- a/addons/account_budget/wizard/account_budget_crossovered_report.py
+++ /dev/null
@@ -1,32 +0,0 @@
-# -*- coding: utf-8 -*-
-# Part of Odoo. See LICENSE file for full copyright and licensing details.
-
-import time
-from openerp.osv import fields, osv
-
-
-class account_budget_crossvered_report(osv.osv_memory):
-
- _name = "account.budget.crossvered.report"
- _description = "Account Budget crossovered report"
- _columns = {
- 'date_from': fields.date('Start of period', required=True),
- 'date_to': fields.date('End of period', required=True),
- }
- _defaults = {
- 'date_from': lambda *a: time.strftime('%Y-01-01'),
- 'date_to': lambda *a: time.strftime('%Y-%m-%d'),
- }
-
- def check_report(self, cr, uid, ids, context=None):
- if context is None:
- context = {}
- data = self.read(cr, uid, ids, context=context)[0]
- datas = {
- 'ids': context.get('active_ids', []),
- 'model': 'crossovered.budget',
- 'form': data
- }
- datas['form']['ids'] = datas['ids']
- datas['form']['report'] = 'analytic-full'
- return self.pool['report'].get_action(cr, uid, [], 'account_budget.report_crossoveredbudget', data=datas, context=context)
diff --git a/addons/account_budget/wizard/account_budget_crossovered_report_views.xml b/addons/account_budget/wizard/account_budget_crossovered_report_views.xml
deleted file mode 100644
index 9ef4a5489c4..00000000000
--- a/addons/account_budget/wizard/account_budget_crossovered_report_views.xml
+++ /dev/null
@@ -1,40 +0,0 @@
-
-
-
-
-
- account.budget.crossvered.report.form
- account.budget.crossvered.report
-
-
-
-
-
-
- Print Budgets
- ir.actions.act_window
- account.budget.crossvered.report
- form
- form
-
- new
-
-
-
- Print Budgets
- client_print_multi
-
- action
- crossovered.budget
-
-
-
diff --git a/addons/account_budget/wizard/account_budget_crossovered_summary_report.py b/addons/account_budget/wizard/account_budget_crossovered_summary_report.py
deleted file mode 100644
index 084f7c17876..00000000000
--- a/addons/account_budget/wizard/account_budget_crossovered_summary_report.py
+++ /dev/null
@@ -1,34 +0,0 @@
-# -*- coding: utf-8 -*-
-# Part of Odoo. See LICENSE file for full copyright and licensing details.
-
-import time
-from openerp.osv import fields, osv
-
-
-class account_budget_crossvered_summary_report(osv.osv_memory):
- """
- This wizard provides the crossovered budget summary report'
- """
- _name = 'account.budget.crossvered.summary.report'
- _description = 'Account Budget crossovered summary report'
- _columns = {
- 'date_from': fields.date('Start of period', required=True),
- 'date_to': fields.date('End of period', required=True),
- }
- _defaults = {
- 'date_from': lambda *a: time.strftime('%Y-01-01'),
- 'date_to': lambda *a: time.strftime('%Y-%m-%d'),
- }
-
- def check_report(self, cr, uid, ids, context=None):
- if context is None:
- context = {}
- data = self.read(cr, uid, ids, context=context)[0]
- datas = {
- 'ids': context.get('active_ids',[]),
- 'model': 'crossovered.budget',
- 'form': data
- }
- datas['form']['ids'] = datas['ids']
- datas['form']['report'] = 'analytic-one'
- return self.pool['report'].get_action(cr, uid, [], 'account_budget.report_crossoveredbudget', data=datas, context=context)
diff --git a/addons/account_budget/wizard/account_budget_crossovered_summary_report_views.xml b/addons/account_budget/wizard/account_budget_crossovered_summary_report_views.xml
deleted file mode 100644
index cf5b663ea91..00000000000
--- a/addons/account_budget/wizard/account_budget_crossovered_summary_report_views.xml
+++ /dev/null
@@ -1,41 +0,0 @@
-
-
-
-
-
- account.budget.crossvered.summary.report.form
- account.budget.crossvered.summary.report
-
-
-
-
-
-
- Print Summary
- ir.actions.act_window
- account.budget.crossvered.summary.report
- form
- form
-
- new
-
-
-
-
- Print Summary
- client_print_multi
-
- action
- crossovered.budget
-
-
-
diff --git a/addons/account_budget/wizard/account_budget_report.py b/addons/account_budget/wizard/account_budget_report.py
deleted file mode 100644
index 6bfde5cc5a6..00000000000
--- a/addons/account_budget/wizard/account_budget_report.py
+++ /dev/null
@@ -1,32 +0,0 @@
-# -*- coding: utf-8 -*-
-# Part of Odoo. See LICENSE file for full copyright and licensing details.
-
-import time
-from openerp.osv import fields, osv
-
-
-class account_budget_report(osv.osv_memory):
-
- _name = "account.budget.report"
- _description = "Account Budget report for analytic account"
- _columns = {
- 'date_from': fields.date('Start of period', required=True),
- 'date_to': fields.date('End of period', required=True),
- }
- _defaults = {
- 'date_from': lambda *a: time.strftime('%Y-01-01'),
- 'date_to': lambda *a: time.strftime('%Y-%m-%d'),
- }
-
- def check_report(self, cr, uid, ids, context=None):
- if context is None:
- context = {}
- data = self.read(cr, uid, ids, context=context)[0]
- datas = {
- 'ids': context.get('active_ids', []),
- 'model': 'account.budget.post',
- 'form': data
- }
- datas['form']['ids'] = datas['ids']
- datas['form']['report'] = 'analytic-full'
- return self.pool['report'].get_action(cr, uid, [], 'account_budget.report_budget', data=datas, context=context)
diff --git a/addons/account_budget/wizard/account_budget_report_views.xml b/addons/account_budget/wizard/account_budget_report_views.xml
deleted file mode 100644
index 4bd1933bc50..00000000000
--- a/addons/account_budget/wizard/account_budget_report_views.xml
+++ /dev/null
@@ -1,42 +0,0 @@
-
-
-
-
-
- account.budget.report.form
- account.budget.report
-
-
-
-
-
-
- Budgets
- ir.actions.act_window
- account.budget.report
- form
- form
-
- new
-
-
-
-
- Budgets
- client_print_multi
-
- action
- account.budget.post
-
-
-
-