account_budget

bzr revid: mra@tinyerp.com-20080912104345-m57ehd9g0nvsiuj1
This commit is contained in:
Mustufa Rangwala
2008-09-12 16:13:45 +05:30
parent 4d2e6e2613
commit ce8993069c
4 changed files with 7 additions and 7 deletions
@@ -7,7 +7,7 @@
string="Print Budgets"
model="crossovered.budget"
name="crossovered.budget.report"
rml="account_budget_crossover/report/crossovered_budget_report.rml"
rml="account_budget/report/crossovered_budget_report.rml"
auto="False"
menu="False" />
@@ -37,7 +37,7 @@
string="Print Budgets"
model="account.analytic.account"
name="account.analytic.account.budget"
rml="account_budget_crossover/report/analytic_account_budget_report.rml"
rml="account_budget/report/analytic_account_budget_report.rml"
auto="False"
menu="False"/>
@@ -47,7 +47,7 @@
menu="False"
model="account.budget.post"
name="account.budget"
rml="account/report/budget_report.rml"
rml="account_budget/report/budget_report.rml"
string="Print Budget"/>
</data>
@@ -172,6 +172,6 @@ class analytic_account_budget_report(report_sxw.rml_parse):
return result
report_sxw.report_sxw('report.account.analytic.account.budget', 'account.analytic.account', 'addons/account_budget_crossover/report/analytic_account_budget_report.rml',parser=analytic_account_budget_report,header=False)
report_sxw.report_sxw('report.account.analytic.account.budget', 'account.analytic.account', 'addons/account_budget/report/analytic_account_budget_report.rml',parser=analytic_account_budget_report,header=False)
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
@@ -63,7 +63,7 @@ class budget_report(report_sxw.rml_parse):
for k in r:
res[k] += r[k]
return [res]
def lines(self, post_obj, date1, date2):
res = []
for a in post_obj.account_ids:
@@ -71,7 +71,7 @@ class budget_report(report_sxw.rml_parse):
achievements = float(self.cr.fetchone()[0]) * (post_obj.sens=='produit' and -1 or 1)
res.append({'name': a.name, 'code': a.code, 'achievements': achievements})
return res
report_sxw.report_sxw('report.account.budget', 'account.budget.post', 'addons/account/report/budget_report.rml',parser=budget_report)
report_sxw.report_sxw('report.account.budget', 'account.budget.post', 'addons/account_budget/report/budget_report.rml',parser=budget_report)
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
@@ -222,6 +222,6 @@ class budget_report(report_sxw.rml_parse):
return result
report_sxw.report_sxw('report.crossovered.budget.report', 'crossovered.budget', 'addons/account_budget_crossover/report/crossovered_budget_report.rml',parser=budget_report,header=False)
report_sxw.report_sxw('report.crossovered.budget.report', 'crossovered.budget', 'addons/account_budget/report/crossovered_budget_report.rml',parser=budget_report,header=False)
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: