Reviewers: ,


Please review this at http://codereview.tryton.org/855002/

Affected files:
  M tryton/gui/window/view_board/action.py


Index: tryton/gui/window/view_board/action.py
===================================================================

--- a/tryton/gui/window/view_board/action.py
+++ b/tryton/gui/window/view_board/action.py
@@ -10,6 +10,7 @@
 from tryton.signal_event import SignalEvent
 from tryton.gui.window.win_form import WinForm
 from tryton.common import RPCExecute, RPCException
+from tryton.action import Action as VanillaAction
 _ = gettext.gettext
 
 
@@ -92,6 +93,14 @@
         if not self.screen.current_record:
             return
 
+        if (self.screen.current_view.view_type == 'tree' and
+                self.screen.current_view.widget_tree.keyword_open):
+            return VanillaAction.exec_keyword('tree_open', {
+                'model': self.screen.model_name,
+                'id': self.screen.id_get(),
+                'ids': [self.screen.id_get()],
+                }, context=self.screen.context.copy(), warning=False)
+
         def callback(result):
             if result:
                 self.screen.current_record.save()
@@ -132,4 +141,4 @@
 #            self.display()
             # Using idle_add to prevent corruption of the event who triggered
             # the update.
-            gtk.idle_add(self.display)
\ No newline at end of file
+            gtk.idle_add(self.display)

Reply via email to