From 1460748477d0b3d732a21af7d4562492683643f3 Mon Sep 17 00:00:00 2001 From: Stefan Rijnhart Date: Thu, 1 Aug 2013 21:26:57 +0200 Subject: [PATCH] [IMP] Allow to set target moves in P/L report and actually honour the setting --- .../report/account_profit_loss.py | 2 +- .../wizard/account_report_profit_loss_view.xml | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/account_financial_report_horizontal/report/account_profit_loss.py b/account_financial_report_horizontal/report/account_profit_loss.py index 0b9fbd9a..cfcd784a 100644 --- a/account_financial_report_horizontal/report/account_profit_loss.py +++ b/account_financial_report_horizontal/report/account_profit_loss.py @@ -113,7 +113,7 @@ class report_pl_account_horizontal(report_sxw.rml_parse, common_report_header): elif data['form']['filter'] == 'filter_date': ctx['date_from'] = data['form'].get('date_from', False) ctx['date_to'] = data['form'].get('date_to', False) - + ctx['state'] = data['form'].get('target_move', 'all') cal_list = {} account_id = data['form'].get('chart_account_id', False) if account_id: diff --git a/account_financial_report_horizontal/wizard/account_report_profit_loss_view.xml b/account_financial_report_horizontal/wizard/account_report_profit_loss_view.xml index 22b9e51d..f2f70b64 100644 --- a/account_financial_report_horizontal/wizard/account_report_profit_loss_view.xml +++ b/account_financial_report_horizontal/wizard/account_report_profit_loss_view.xml @@ -9,9 +9,6 @@ - - -