← Back to team overview

openerp-india team mailing list archive

[Bug 946138] [NEW] BS and PL filtering by period doesnot work

 

Public bug reported:

In v6.0, when editing a balance sheet or Profit and loss, filtering by period doesnot work at all due to the following piece of code:
in report/account_balance_sheet.py:
            ctx['periods'] = data['form'].get('periods', False)
should be replaced by:
            ctx['period_from'] = data['form'].get('period_from', False)
            ctx['period_to'] = data['form'].get('period_to', False)
and in report/account_profit_loss.py:
            ctx['periods'] = data['form'].get('periods', False)
should be replaced by:
            ctx['period_from'] = data['form'].get('period_from', False)
            ctx['period_to'] = data['form'].get('period_to', False)

** Affects: openobject-addons
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/946138

Title:
  BS and PL filtering by period doesnot work

Status in OpenERP Addons (modules):
  New

Bug description:
  In v6.0, when editing a balance sheet or Profit and loss, filtering by period doesnot work at all due to the following piece of code:
  in report/account_balance_sheet.py:
              ctx['periods'] = data['form'].get('periods', False)
  should be replaced by:
              ctx['period_from'] = data['form'].get('period_from', False)
              ctx['period_to'] = data['form'].get('period_to', False)
  and in report/account_profit_loss.py:
              ctx['periods'] = data['form'].get('periods', False)
  should be replaced by:
              ctx['period_from'] = data['form'].get('period_from', False)
              ctx['period_to'] = data['form'].get('period_to', False)

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/946138/+subscriptions


Follow ups

References