[FIX] Partially revert xmo@openerp.com-20130812074509-yopeb4pxtsads4d9
authorXavier Morel <xmo@openerp.com>
Thu, 19 Sep 2013 13:08:47 +0000 (15:08 +0200)
committerXavier Morel <xmo@openerp.com>
Thu, 19 Sep 2013 13:08:47 +0000 (15:08 +0200)
commit724bbffc88e444b50c1622c942b8c4554646d367
tree49afd7d67c24805deb14a943cb240329e8c6bd09
parent4b89b246a8befcd5a3a513eda591bfa8e19a72c8
[FIX] Partially revert xmo@openerp.com-20130812074509-yopeb4pxtsads4d9

Change attempted to simplify branding distribution, but based node
branding on final view. To be able to rewrite, node branding must be
based on source views positions before applying inheritance.

Reintroduce manual generation of xpath in distribute_branding as
ElementTree.getpath() can't handle it.

Note: why isn't branding distribution performed during initial views
reading (e.g. inherit_branding)? Surely that would obviate the need
for special casing and manually creating paths no?

bzr revid: xmo@openerp.com-20130919130847-3t8zfpv9m9pcibg0
openerp/addons/base/ir/ir_ui_view.py
openerp/tools/misc.py