diff --git a/trytond/protocols/dispatcher.py b/trytond/protocols/dispatcher.py index 3b43041d1d..b2d1ecbe6b 100644 --- a/trytond/protocols/dispatcher.py +++ b/trytond/protocols/dispatcher.py @@ -109,6 +109,9 @@ def dispatch(host, port, protocol, database_name, user, session, object_type, for object_name, obj in pool.iterobject(type=type): for method in obj.__rpc__: res.append(type + '.' + object_name + '.' + method) + if hasattr(obj, '_buttons'): + for button in obj._buttons: + res.append(type + '.' + object_name + '.' + button) return res elif method == 'methodSignature': return 'signatures not supported'