← Back to team overview

openerp-india team mailing list archive

[Bug 932710] [NEW] Account profit loss report periods filter not working

 

Public bug reported:

Hello,

the period filter in the profit and loss report doesn't seem to be working.
If you look in account/report/account_profit_loss.py (around line 101) :

        if data['form']['filter'] == 'filter_period':
            ctx['periods'] =  data['form'].get('periods', False)

but data['form']['periods'] is an empty list.
Shouldn't the ctx be updated like so :

            ctx['period_from']= data['form'].get('period_from', False)
            ctx['period_to']= data['form'].get('period_to', False)

Thank you very much,
David.

** 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/932710

Title:
  Account profit loss report periods filter not working

Status in OpenERP Addons (modules):
  New

Bug description:
  Hello,

  the period filter in the profit and loss report doesn't seem to be working.
  If you look in account/report/account_profit_loss.py (around line 101) :

          if data['form']['filter'] == 'filter_period':
              ctx['periods'] =  data['form'].get('periods', False)

  but data['form']['periods'] is an empty list.
  Shouldn't the ctx be updated like so :

              ctx['period_from']= data['form'].get('period_from', False)
              ctx['period_to']= data['form'].get('period_to', False)

  Thank you very much,
  David.

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


Follow ups

References