How to pass database in base url like 'base_url = 'http://localhost:8069/odoo_test'
'
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Boekhouding
- Voorraad
- PoS
- Project
- MRP
Deze vraag is gerapporteerd
I tried following your steps, like http://localhost:8069/web?db=dbname/api/verify but still getting this error in response.
{'error': {'message': 'Odoo Server Error', 'data': {'name': 'werkzeug.exceptions.BadRequest', 'message': "400 Bad Request: <function Home.web_client at 0x7ff4e0fc3d90>, /web: Function declared as capable of handling request of type 'http' but called with a request of type 'json'", 'debug': 'Traceback (most recent call last):\n File "/usr/lib/python3/dist-packages/odoo/http.py", line 654, in _handle_exception\n return super(JsonRequest, self)._handle_exception(exception)\n File "/usr/lib/python3/dist-packages/odoo/http.py", line 312, in _handle_exception\n raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])\n File "/usr/lib/python3/dist-packages/odoo/tools/pycompat.py", line 87, in reraise\n raise value\n File "/usr/lib/python3/dist-packages/odoo/http.py", line 696, in dispatch\n result = self._call_function(**self.params)\n File "/usr/lib/python3/dist-packages/odoo/http.py", line 320, in _call_function\n raise werkzeug.exceptions.BadRequest(msg % params)\nwerkzeug.exceptions.BadRequest: 400 Bad Request: <function Home.web_client at 0x7ff4e0fc3d90>, /web: Function declared as capable of handling request of type \'http\' but called with a request of type \'json\'\n', 'exception_type': 'internal_error', 'arguments': []}, 'code': 200}, 'jsonrpc': '2.0', 'id': None}
Hi Keerthi,
I guess you need to pass the db name along with the url. Try this
http://localhost:8069/web?db=dbname
Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!
Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!
AanmeldenGerelateerde posts | Antwoorden | Weergaven | Activiteit | |
---|---|---|---|---|
|
2
mei 23
|
4300 | ||
Original project names via the API
Opgelost
|
|
1
apr. 25
|
727 | |
|
2
jan. 25
|
805 | ||
|
0
sep. 24
|
4 | ||
|
0
sep. 24
|
1151 |
There is no Rest Api from Odoo by default?
Yeah its a custom api that