We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7295069 commit dee1238Copy full SHA for dee1238
odoolib/json2.py
@@ -91,7 +91,7 @@ def proxy(*args, **kwargs):
91
92
def _introspect(self):
93
if not self.methods:
94
- url = f"{self.connection.connector.url.strip('/json/2/')}/doc/{self.model_name }.json"
+ url = f"{self.connection.connector.url.removesuffix('/json/2/')}/doc/{self.model_name }.json"
95
response = requests.get(url, headers=self.connection.bearer_header)
96
response.raise_for_status()
97
m = response.json().get('methods', {})
0 commit comments