Reviewers: ,


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

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


Index: tryton/action/main.py
===================================================================

--- a/tryton/action/main.py
+++ b/tryton/action/main.py
@@ -58,7 +58,7 @@
         if not action_type:
             res = False
             try:
-                res = RPCExecute('model', 'ir.action', 'read', act_id,
+                res, = RPCExecute('model', 'ir.action', 'read', [act_id],
                     ['type'], context=context)
             except RPCException:
                 return
@@ -66,7 +66,7 @@
                 raise Exception('ActionNotFound')
             action_type = res['type']
         try:
-            res = RPCExecute('model', action_type, 'search_read',
+            res, = RPCExecute('model', action_type, 'search_read',
                 [('action', '=', act_id)], 0, 1, None, None,
                 context=context)
         except RPCException:

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

--- a/tryton/gui/window/view_board/action.py
+++ b/tryton/gui/window/view_board/action.py
@@ -21,8 +21,8 @@
         self.context = context or {}

         try:
- self.action = RPCExecute('model', 'ir.action.act_window', 'read',
-                self.act_id, False)
+ self.action, = RPCExecute('model', 'ir.action.act_window', 'read',
+                [self.act_id], False)
         except RPCException:
             raise




--
[email protected] mailing list

Reply via email to