Reviewers: ,


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

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
@@ -17,12 +17,12 @@

     def __init__(self, attrs=None, context=None):
         super(Action, self).__init__()
-        self.act_id = int(attrs['name'])
+        self.name = attrs['name']
         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', 'get',
+                self.name)
         except RPCException:
             raise

@@ -121,7 +121,7 @@
         domain_ctx['_user'] = rpc._USER
         for action in actions:
             if action.active:
-                domain_ctx['_active_%s' % action.act_id] = action.active
+                domain_ctx[action.name] = action.active
         new_domain = PYSONDecoder(domain_ctx).decode(
                 self.action['pyson_domain'])
         if self.domain == new_domain:



--
[email protected] mailing list

Reply via email to