From 0016233f6339b8638e5d06681b1e00364ec682a3 Mon Sep 17 00:00:00 2001 From: "ARA (OpenERP)" Date: Mon, 7 Feb 2011 17:18:54 +0530 Subject: [PATCH] [FIX] account : period selection not working for BS and PL legal reports lp bug: https://launchpad.net/bugs/711886 fixed bzr revid: ara@tinyerp.com-20110207114854-b7hi16pe98i3w2kh --- addons/account/report/account_balance_sheet.py | 3 ++- addons/account/report/account_profit_loss.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/addons/account/report/account_balance_sheet.py b/addons/account/report/account_balance_sheet.py index f22061a5785..e13fa43fac5 100644 --- a/addons/account/report/account_balance_sheet.py +++ b/addons/account/report/account_balance_sheet.py @@ -100,7 +100,8 @@ class report_balancesheet_horizontal(report_sxw.rml_parse, common_report_header) ctx['fiscalyear'] = data['form'].get('fiscalyear_id', False) if data['form']['filter'] == 'filter_period': - ctx['periods'] = data['form'].get('periods', False) + ctx['period_from'] = data['form'].get('period_from', False) + ctx['period_to'] = data['form'].get('period_to', False) elif data['form']['filter'] == 'filter_date': ctx['date_from'] = data['form'].get('date_from', False) ctx['date_to'] = data['form'].get('date_to', False) diff --git a/addons/account/report/account_profit_loss.py b/addons/account/report/account_profit_loss.py index bd1635e91fc..6f16048d3a8 100644 --- a/addons/account/report/account_profit_loss.py +++ b/addons/account/report/account_profit_loss.py @@ -93,7 +93,8 @@ class report_pl_account_horizontal(report_sxw.rml_parse, common_report_header): ctx['fiscalyear'] = data['form'].get('fiscalyear_id', False) if data['form']['filter'] == 'filter_period': - ctx['periods'] = data['form'].get('periods', False) + ctx['period_from'] = data['form'].get('period_from', False) + ctx['period_to'] = data['form'].get('period_to', False) elif data['form']['filter'] == 'filter_date': ctx['date_from'] = data['form'].get('date_from', False) ctx['date_to'] = data['form'].get('date_to', False)