From 371839db20eb4ceab55e6af2bfb3b89ea46550da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 11 Jun 2014 09:28:36 +0200 Subject: [PATCH] Set name attribute from parent if affix doesn't have one issue3982 review8421004 --- tryton/gui/window/view_form/view/list.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tryton/gui/window/view_form/view/list.py b/tryton/gui/window/view_form/view/list.py index ef0cf1041b..e4669fc16c 100644 --- a/tryton/gui/window/view_form/view/list.py +++ b/tryton/gui/window/view_form/view/list.py @@ -341,6 +341,8 @@ class ViewTree(View): prefixes.append(Affix(self, node_attrs)) for affix in node.childNodes: affix_attrs = node_attributes(affix) + if 'name' not in affix_attrs: + affix_attrs['name'] = name if affix.tagName == 'prefix': list_ = prefixes else: