← Back to team overview

openerp-india team mailing list archive

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

 

Moreover it is nonsensical to filter a balance sheet by period.  It is a
snapshot of a business at a given date.

On Sun, Mar 4, 2012 at 8:39 PM, Eric Caudal - www.openerp.net.cn <
eric.caudal@xxxxxxxxxxxxxx> wrote:

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

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