@http.route('/test_url/print_json', auth='public', type='json', cors="*", csrf=False)
def print_json(self, **post):
return {"msg":"ok"}
I expect to get JSON {"msg":"ok"}
but actually going to return {"jsonrpc":"2.0","id":null,"result":{"msg":"ok"}}
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
@http.route('/test_url/print_json', auth='public', type='json', cors="*", csrf=False)
def print_json(self, **post):
return {"msg":"ok"}
I expect to get JSON {"msg":"ok"}
but actually going to return {"jsonrpc":"2.0","id":null,"result":{"msg":"ok"}}
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 | |
---|---|---|---|---|
|
0
jan. 23
|
2169 | ||
|
2
sep. 20
|
11665 | ||
|
1
jun. 25
|
2080 | ||
Controller not working
Opgelost
|
|
2
jun. 25
|
388 | |
|
3
jun. 24
|
3243 |