diff --git a/addons/account_budget/report/budget_report.py b/addons/account_budget/report/budget_report.py index 8b98b067bb3..7681f9268d9 100644 --- a/addons/account_budget/report/budget_report.py +++ b/addons/account_budget/report/budget_report.py @@ -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', diff --git a/addons/account_budget/report/crossovered_budget_report.py b/addons/account_budget/report/crossovered_budget_report.py index 8a3b745e32a..b70b7da34bb 100644 --- a/addons/account_budget/report/crossovered_budget_report.py +++ b/addons/account_budget/report/crossovered_budget_report.py @@ -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',