Board view crash on open due to many roots on xml
When opening a board view the gtk client 6.0 crashes with error:
File "/home/smorillo/code/tryton-hg/tryton/common/common.py", line 1138, in process
self.callback(return_)
File "/home/smorillo/code/tryton-hg/tryton/gui/window/wizard.py", line 152, in end_callback
callback()
File "/home/smorillo/code/tryton-hg/tryton/gui/window/wizard.py", line 136, in <lambda>
self.end(lambda *a: execute_actions())
File "/home/smorillo/code/tryton-hg/tryton/gui/window/wizard.py", line 133, in execute_actions
Action.execute(*action, context=context)
File "/home/smorillo/code/tryton-hg/tryton/action/main.py", line 55, in execute
Action._exec_action(action, data, context=context)
File "/home/smorillo/code/tryton-hg/tryton/action/main.py", line 132, in _exec_action
Window.create(res_model,
File "/home/smorillo/code/tryton-hg/tryton/gui/window/window.py", line 35, in create
win = Board(model, **attributes)
File "/home/smorillo/code/tryton-hg/tryton/gui/window/board.py", line 37, in __init__
root, = xml_dom.childNodes
ValueError: too many values to unpack (expected 1)
Debugging I see childNodes
has the board tag (that's ok) and also the usual file header comment as another element in list.
Removing the comment the board view opens correctly.