From: Quentin (OpenERP) Date: Fri, 9 Dec 2011 16:38:36 +0000 (+0100) Subject: [FIX] account, financial reports: display flat must not print view accounts X-Git-Tag: 6.1.0-rc1-addons~665^2~6 X-Git-Url: http://git.inspyration.org/?a=commitdiff_plain;h=8ba72ec3902431e1355bec08d5ea92106ae21d4c;p=odoo%2Fodoo.git [FIX] account, financial reports: display flat must not print view accounts bzr revid: qdp-launchpad@openerp.com-20111209163836-3rcq5mkfesg2vhq6 --- diff --git a/addons/account/report/account_financial_report.py b/addons/account/report/account_financial_report.py index 7657ec2..d4d3342 100644 --- a/addons/account/report/account_financial_report.py +++ b/addons/account/report/account_financial_report.py @@ -70,6 +70,8 @@ class report_account_common(report_sxw.rml_parse, common_report_header): account_ids = account_obj.search(self.cr, self.uid, [('user_type','in', [x.id for x in report.account_type_ids])]) if account_ids: for account in account_obj.browse(self.cr, self.uid, account_ids, context=data['form']['used_context']): + if report.display_detail == 'only_detail' and account.type == 'view': + continue flag = False vals = { 'name': account.code + ' ' + account.name,