← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 716300] Re: context not passed in tree_but_action

 

This bug is being closed as Won't Fix in the OpenERP Web Client project, as it is not going to be developed further after the 6.0 series. It will be replaced in 6.1 by a newer and better web frontend known as the OpenERP Web project[1], so further R&D efforts on the 6.0 project would be wasted.
Bugs affecting customers in production of course continue to be handled via the OpenERP Enterprise (OPW) maintenance service.
You can find more details about this in the Bug Management FAQ[2].


** Changed in: openobject-client-web
   Importance: Low => Undecided

** Changed in: openobject-client-web
       Status: Confirmed => Won't Fix

** Changed in: openobject-client-web
     Assignee: OpenERP R&D Web Team (openerp-dev-web) => (unassigned)

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/716300

Title:
  context not passed in tree_but_action

Status in OpenERP Web Client:
  Won't Fix
Status in OpenERP Web Client 5.0 series:
  Fix Released

Bug description:
  In openerp web client 5 (not tested in 6), the context is not passed to the tree_but_action in tree views.
  So for example, when clicking on an account in chart of account, it returns all entries of that account regardless of wizard parameters.
  I made a patch to fix this:

  === modified file 'openerp/controllers/tree.py'
  --- openerp/controllers/tree.py 2009-09-18 10:10:44 +0000
  +++ openerp/controllers/tree.py 2011-02-10 08:44:46 +0000
  @@ -191,7 +191,7 @@
               record = {}
   
               record['id'] = item.pop('id')
  -            record['action'] = url('/tree/open', model=model, id=record['id'])
  +            record['action'] = url('/tree/open', model=model, id=record['id'], context=ctx)
               record['target'] = None
   
               record['icon'] = None
  @@ -219,7 +219,7 @@
           params, data = TinyDict.split(datas)
   
           model = params.model
  -        context = params._terp_context or {}
  +        context = params.context or {}
           ids = data.get('ids') or []
   
           ctx = rpc.session.context.copy()

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-client-web/+bug/716300/+subscriptions


References