Browse Source

[IMP] Allow to set target moves in P/L report and actually honour the setting

pull/689/head
Stefan Rijnhart 11 years ago
committed by Nikos Tsirintanis
parent
commit
1460748477
  1. 2
      account_financial_report_horizontal/report/account_profit_loss.py
  2. 3
      account_financial_report_horizontal/wizard/account_report_profit_loss_view.xml

2
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:

3
account_financial_report_horizontal/wizard/account_report_profit_loss_view.xml

@ -9,9 +9,6 @@
<field name="inherit_id" ref="account_financial_report_horizontal.account_common_report_view" />
<field name="arch" type="xml">
<data>
<xpath expr="//field[@name='target_move']" position="replace">
<field name="target_move" required="0" readonly="1"/>
</xpath>
<xpath expr="//field[@name='journal_ids']" position="replace">
<field name="journal_ids" required="0" colspan="4" nolabel="1" readonly="1"/>
</xpath>

Loading…
Cancel
Save