Use method name instead of instance when calling is_instance_method
issue7053
This commit is contained in:
1 parent
878283f5e6
commit
8f6f421e52
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user