Skip to content

Commit dee1238

Browse files
nseinletKangOl
andauthored
Update odoolib/json2.py
Co-authored-by: Christophe Simonis <[email protected]>
1 parent 7295069 commit dee1238

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

odoolib/json2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def proxy(*args, **kwargs):
9191

9292
def _introspect(self):
9393
if not self.methods:
94-
url = f"{self.connection.connector.url.strip('/json/2/')}/doc/{self.model_name }.json"
94+
url = f"{self.connection.connector.url.removesuffix('/json/2/')}/doc/{self.model_name }.json"
9595
response = requests.get(url, headers=self.connection.bearer_header)
9696
response.raise_for_status()
9797
m = response.json().get('methods', {})

0 commit comments

Comments
 (0)