Tryton - Issues

 

Issue6294

Title Creating a board view with a form inside crashes the client
Priority bug Status need-eg
Superseder Nosy List albertca, ced, pokoli, sergi-nan
Type crash Components tryton
Assigned To Keywords
Reviews

Created on 2017-02-23.10:04:04 by sergi-nan, last changed by pokoli.

Files
File name Uploaded Type Edit Remove
board_view_crash.tar.gz sergi-nan, 2017-02-23.10:04:03 application/gzip
Messages
msg32314 (view) Author: [hidden] (pokoli) (Tryton committer) Date: 2017-03-07.13:11:04
I can not reproduce on trunk using a similar board view (which contaings hpaned and two children actions as your view). I can not test with your code as I'm missing the pareent field on productions? Is this module avaiable somewhere? 

On which version have you found it?
msg32145 (view) Author: [hidden] (sergi-nan) Date: 2017-02-23.11:47:35
The traceback is inside the attached file with the name bug_client_board.txt

Anyways, here it is:
ERROR:tryton.common.common:Traceback (most recent call last):
  File "/home/sergi/projectes/phoenix/tryton/tryton/gui/window/view_form/view/list.py", line 974, in __sig_switch
    if not self.screen.row_activate() and self.children_field:
  File "/home/sergi/projectes/phoenix/tryton/tryton/gui/window/view_form/screen/screen.py", line 429, in default_row_activate
    }, context=self.context.copy(), warning=False)
  File "/home/sergi/projectes/phoenix/tryton/tryton/action/main.py", line 166, in exec_keyword
    Action._exec_action(action, data, context=context)
  File "/home/sergi/projectes/phoenix/tryton/tryton/action/main.py", line 129, in _exec_action
    context_model=action['context_model'])
  File "/home/sergi/projectes/phoenix/tryton/tryton/gui/window/window.py", line 38, in create
    context=context, name=name)
  File "/home/sergi/projectes/phoenix/tryton/tryton/gui/window/board.py", line 49, in __init__
    self.board = ViewBoard(view['arch'], context=context)
  File "/home/sergi/projectes/phoenix/tryton/tryton/gui/window/view_board/view_board.py", line 28, in __init__
    self.widget = self.parse(node).table
  File "/home/sergi/projectes/phoenix/tryton/tryton/gui/window/view_board/view_board.py", line 47, in parse
    parser(node, container, node_attrs)
  File "/home/sergi/projectes/phoenix/tryton/tryton/gui/window/view_board/view_board.py", line 136, in _parse_hpaned
    self._parse_paned(node, container, attributes, gtk.HPaned)
  File "/home/sergi/projectes/phoenix/tryton/tryton/gui/window/view_board/view_board.py", line 133, in _parse_paned
    self.parse(node, paned)
  File "/home/sergi/projectes/phoenix/tryton/tryton/gui/window/view_board/view_board.py", line 47, in parse
    parser(node, container, node_attrs)
  File "/home/sergi/projectes/phoenix/tryton/tryton/gui/window/view_board/view_board.py", line 142, in _parse_child
    container = self.parse(node)
  File "/home/sergi/projectes/phoenix/tryton/tryton/gui/window/view_board/view_board.py", line 47, in parse
    parser(node, container, node_attrs)
  File "/home/sergi/projectes/phoenix/tryton/tryton/gui/window/view_board/view_board.py", line 152, in _parse_action
    action = Action(attributes, self.context)
  File "/home/sergi/projectes/phoenix/tryton/tryton/gui/window/view_board/action.py", line 90, in __init__
    self.screen.search_filter()
  File "/home/sergi/projectes/phoenix/tryton/tryton/gui/window/view_form/screen/screen.py", line 263, in search_filter
    self.screen_container.set_text(self.domain_parser.string(domain))
  File "/home/sergi/projectes/phoenix/tryton/tryton/gui/window/view_form/view/screen_container.py", line 335, in set_text
    self.bookmark_match()
  File "/home/sergi/projectes/phoenix/tryton/tryton/gui/window/view_form/view/screen_container.py", line 350, in bookmark_match
    current_domain = self.screen.domain_parser.parse(current_text)
AttributeError: 'ScreenContainer' object has no attribute 'screen'

'ScreenContainer' object has no attribute 'screen'
msg32142 (view) Author: [hidden] (ced) (Tryton committer) (Tryton translator) Date: 2017-02-23.10:48:40
Could you provide the traceback?
msg32141 (view) Author: [hidden] (sergi-nan) Date: 2017-02-23.10:04:03
When creating a board view, and using a form view inside of it, the client unexpectedly crashes.

I've attached both the traceback and my views in a .zip file.
History
Date User Action Args
2017-03-07 13:11:05pokolisetstatus: chatting -> need-eg
nosy: + pokoli
messages: + msg32314
2017-03-01 13:46:01cedsetstatus: need-eg -> chatting
2017-02-23 11:47:35sergi-nansetmessages: + msg32145
2017-02-23 10:48:40cedsetstatus: chatting -> need-eg
nosy: + ced
messages: + msg32142
2017-02-23 10:04:04sergi-nancreate

Showing 10 items. Show all history (warning: this could be VERY long)