summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin (OpenERP) <qdp-launchpad@openerp.com>2011-09-01 13:41:23 +0200
committerQuentin (OpenERP) <qdp-launchpad@openerp.com>2011-09-01 13:41:23 +0200
commit9a5a5f5dbb4e8131aa4efdfa063fd08dbeaca68a (patch)
tree46ef4bda758d3081686416cb00e9397096307957
parent2ee86778ef48481d0de1ea84d205fd3b5c2872e3 (diff)
[FIX] account, low level reports: avoid to print accounts if there is no account_ids linked to a low.level.report
bzr revid: qdp-launchpad@openerp.com-20110901114123-qo654qllg0tcgqc5
-rw-r--r--addons/account/report/account_low_level_report.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/account/report/account_low_level_report.py b/addons/account/report/account_low_level_report.py
index 1fec5557c3f..08c196892a5 100644
--- a/addons/account/report/account_low_level_report.py
+++ b/addons/account/report/account_low_level_report.py
@@ -63,7 +63,7 @@ class report_account_common(report_sxw.rml_parse, common_report_header):
if data['form']['enable_filter']:
vals['balance_cmp'] = self.pool.get('account.low.level.report').browse(self.cr, self.uid, report.id, context=data['form']['comparison_context']).balance
lines.append(vals)
- if report.type == 'accounts' and report.display_detail:
+ if report.type == 'accounts' and report.display_detail and report.account_ids:
account_ids = account_obj._get_children_and_consol(self.cr, self.uid, [x.id for x in report.account_ids])
for account in account_obj.browse(self.cr, self.uid, account_ids, context=data['form']['used_context']):
if account.type != 'view':