From a42c68e8a1f930684ae38676eeca3a93eeb8bcc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 19 Mar 2008 15:17:54 +0100 Subject: [PATCH] Add get_action_id to rpc_allowed for the client when button is link to action --- trytond/ir/action.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/trytond/ir/action.py b/trytond/ir/action.py index db7bff56ff..d6363be502 100644 --- a/trytond/ir/action.py +++ b/trytond/ir/action.py @@ -16,6 +16,12 @@ class Action(OSV): groups = fields.Many2Many('res.group', 'ir_action_group_rel', 'action_id', 'gid', 'Groups') + def __init__(self): + super(Action, self).__init__() + self._rpc_allowed += [ + 'get_action_id', + ] + def default_usage(self, cursor, user, context=None): return False