summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorAntony Lesuisse <al@openerp.com>2011-09-22 01:53:24 +0200
committerAntony Lesuisse <al@openerp.com>2011-09-22 01:53:24 +0200
commitf18c91c9a1ceea65cf6ce8d698d5bd62b3fe54cf (patch)
tree2339103c2bfe10990b146ef96b240690ea6d2ab7 /addons
parentb117f5dc758f167c6dc48fca8093984b45bdcc33 (diff)
[IMP] account.financial.report account_type mode
bzr revid: al@openerp.com-20110921235324-fgo9v1g3omppe3h1
Diffstat (limited to 'addons')
-rw-r--r--addons/account/report/account_financial_report.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/addons/account/report/account_financial_report.py b/addons/account/report/account_financial_report.py
index 87b7fab7b8d..3a73930f526 100644
--- a/addons/account/report/account_financial_report.py
+++ b/addons/account/report/account_financial_report.py
@@ -63,8 +63,14 @@ class report_account_common(report_sxw.rml_parse, common_report_header):
if data['form']['enable_filter']:
vals['balance_cmp'] = self.pool.get('account.financial.report').browse(self.cr, self.uid, report.id, context=data['form']['comparison_context']).balance
lines.append(vals)
+ account_ids = []
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])
+ elif report.type == 'account_type' and report.account_type_ids:
+ print "accout type"
+ account_ids = account_obj.search(self.cr, self.uid, [('user_type','in', [x.id for x in report.account_type_ids])])
+ print account_ids
+ if account_ids:
for account in account_obj.browse(self.cr, self.uid, account_ids, context=data['form']['used_context']):
if account.type != 'view':
flag = False