Use method name instead of instance when calling is_instance_method

issue7053
This commit is contained in:
Cédric Krier committed 2018-01-16 01:10:21 +01:00
1 parent 878283f5e6
commit 8f6f421e52
1 file changed
+1 -1
+1 -1
View File
@@ -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