From 8f6f421e5285be45025e247dd71efea0acfef6d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 16 Jan 2018 01:10:21 +0100 Subject: [PATCH] Use method name instead of instance when calling is_instance_method issue7053 --- proteus/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proteus/config.py b/proteus/config.py index e4fe970ea7..fec5eaf039 100644 --- a/proteus/config.py +++ b/proteus/config.py @@ -171,7 +171,7 @@ class _TrytondMethod(object): rpc.convert(self._object, *args, **kwargs) meth = getattr(self._object, self._name) if (rpc.instantiate is None - or not is_instance_method(self._object, meth)): + or not is_instance_method(self._object, self._name)): result = rpc.result(meth(*args, **kwargs)) else: assert rpc.instantiate == 0