context not passed in tree_but_action
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Web Client |
Won't Fix
|
Undecided
|
Unassigned | ||
5.0 |
Fix Released
|
Low
|
Jay Vora (Serpent Consulting Services) |
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/
--- openerp/
+++ openerp/
@@ -191,7 +191,7 @@
record = {}
- record['action'] = url('/tree/open', model=model, id=record['id'])
+ record['action'] = url('/tree/open', model=model, id=record['id'], context=ctx)
@@ -219,7 +219,7 @@
params, data = TinyDict.
model = params.model
- context = params.
+ context = params.context or {}
ids = data.get('ids') or []
ctx = rpc.session.
Related branches
- OpenERP R&D Team: Pending requested
-
Diff: 667 lines (+70/-70)41 files modifiedaccount_voucher/account_voucher.py (+1/-1)
account_voucher/i18n/account_voucher.pot (+1/-1)
account_voucher/i18n/ar.po (+1/-1)
account_voucher/i18n/bg.po (+1/-1)
account_voucher/i18n/bs.po (+1/-1)
account_voucher/i18n/ca.po (+3/-3)
account_voucher/i18n/cs.po (+1/-1)
account_voucher/i18n/de.po (+2/-2)
account_voucher/i18n/el.po (+3/-3)
account_voucher/i18n/es.po (+4/-4)
account_voucher/i18n/es_AR.po (+1/-1)
account_voucher/i18n/es_EC.po (+4/-4)
account_voucher/i18n/et.po (+1/-1)
account_voucher/i18n/fr.po (+2/-2)
account_voucher/i18n/hi.po (+1/-1)
account_voucher/i18n/hr.po (+1/-1)
account_voucher/i18n/hu.po (+2/-2)
account_voucher/i18n/id.po (+1/-1)
account_voucher/i18n/it.po (+3/-3)
account_voucher/i18n/ko.po (+1/-1)
account_voucher/i18n/lt.po (+3/-3)
account_voucher/i18n/mn.po (+1/-1)
account_voucher/i18n/nl.po (+1/-1)
account_voucher/i18n/nl_BE.po (+1/-1)
account_voucher/i18n/oc.po (+1/-1)
account_voucher/i18n/pl.po (+2/-2)
account_voucher/i18n/pt.po (+3/-3)
account_voucher/i18n/pt_BR.po (+2/-2)
account_voucher/i18n/ro.po (+3/-3)
account_voucher/i18n/ru.po (+1/-1)
account_voucher/i18n/sl.po (+1/-1)
account_voucher/i18n/sq.po (+1/-1)
account_voucher/i18n/sr.po (+2/-2)
account_voucher/i18n/sr@latin.po (+2/-2)
account_voucher/i18n/sv.po (+1/-1)
account_voucher/i18n/tlh.po (+1/-1)
account_voucher/i18n/tr.po (+3/-3)
account_voucher/i18n/uk.po (+1/-1)
account_voucher/i18n/vi.po (+1/-1)
account_voucher/i18n/zh_CN.po (+3/-3)
account_voucher/i18n/zh_TW.po (+1/-1)
- Mustufa Rangwala (Open ERP) (community): Disapprove
- qdp (OpenERP): Needs Information
-
Diff: 12 lines (+1/-1)1 file modifiedaccount/account_view.xml (+1/-1)
- OpenERP Core Team: Pending requested
-
Diff: 30 lines (+3/-2)2 files modifiedaddons/openerp/controllers/actions.py (+2/-1)
addons/openerp/controllers/tree.py (+1/-1)
affects: | openobject-client-web → openobject-addons |
Changed in openobject-addons: | |
assignee: | nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3) |
importance: | Undecided → Low |
status: | New → Confirmed |
Changed in openobject-addons: | |
status: | Confirmed → In Progress |
Changed in openobject-addons: | |
milestone: | none → 6.1 |
Changed in openobject-addons: | |
status: | Confirmed → In Progress |
status: | In Progress → Fix Committed |
Changed in openobject-addons: | |
status: | Confirmed → In Progress |
Changed in openobject-addons: | |
milestone: | none → 6.1 |
Changed in openobject-addons: | |
milestone: | 6.1 → none |
affects: | openobject-addons → openobject-client-web |
Changed in openobject-client-web: | |
assignee: | OpenERP R&D Addons Team 3 (openerp-dev-addons3) → nobody |
importance: | Low → Undecided |
status: | Confirmed → New |
Changed in openobject-client-web: | |
assignee: | nobody → OpenERP SA's Web Client R&D (openerp-dev-web) |
importance: | Undecided → Low |
status: | New → Confirmed |
Changed in openobject-client-web: | |
status: | Confirmed → In Progress |
Hello David Janssens,
Its fixed in https:/ /code.launchpad .net/~openerp- commiter/ openobject- addons/ trunk-dev- addons3- mtr1 branch. 20110211112737- esnj1iyhcwlqn87 v
Revision ID: mtr@mtr-
Revision no:4751
Thanks
mtr