[FIX] account_budget: Print budget report without analytic account gives error
bzr revid: ara@tinyerp.com-20110415060942-czsjpgs1jguwvc11
This commit is contained in:
parent
ad0ececa4e
commit
db491b415b
|
@ -67,6 +67,8 @@ class budget_report(report_sxw.rml_parse):
|
|||
|
||||
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',
|
||||
|
|
|
@ -72,6 +72,8 @@ class budget_report(report_sxw.rml_parse):
|
|||
|
||||
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',
|
||||
|
|
Loading…
Reference in New Issue