Invalid behavior of hierarchic tree view (toggle show/hide children)
Bug #1183156 reported by
Denis Karataev
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Web (MOVED TO GITHUB) |
Fix Released
|
Low
|
OpenERP R&D Web Team |
Bug Description
Hello!
When we click to show/hide children of hierarchic tree view item, we get the bug, because toggling depends on item id from database, so we can have more than one item with same id. It must be rewrited to have unique id for every item in tree view, it will fix the problem.
It's error with wrong item selection in addons/
this.$el.
where '#treerow_' + record_id is not unique DOM id!
Please, see attached video.
Related branches
lp:~openerp-dev/openerp-web/7.0-bug-1183156-bth
- Martin Trigaux (OpenERP) (community): Approve
-
Diff: 74 lines (+13/-12)2 files modifiedaddons/web/static/src/js/view_tree.js (+11/-11)
addons/web/static/src/xml/base.xml (+2/-1)
Changed in openerp-web: | |
status: | Confirmed → In Progress |
Changed in openerp-web: | |
status: | In Progress → Fix Committed |
To post a comment you must log in.
Hello Denis,
I have checked your scenario, But I did not faced any problem at my side. It's work fine as expected. Suppose create bom for product "Mega Pc" and using sub product "PC Assemble + 512MB RAM" which have another bom. So when open tree for "Mega Pc" and click show, It's show only sub product. doesn't show the sub product of "PC Assemble + 512MB RAM". at other end show the child product of "PC Assemble + 512MB RAM" which is expect.
So I have attached screen capture for your reference. would you please check It again and notify us where you have faced the problem.
Thanks and waiting for your reply!