Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "id": 8,
- "method": "model.ir.model.read",
- "params":
- [
- 1,
- "qdnWWyRL6mgnuIJrnxTFxGaWX7xc6o/BH+QnWZbFcgU=",
- [47, 71],
- ["info", "model", "name", "module", "_timestamp"],
- {
- "language": "fr_FR", "locale": {
- "date": "%d.%m.%Y", "thousands_sep": "", "grouping": [],
- "decimal_point": ","
- },
- "language_direction": "ltr", "groups": [1], "timezone": null
- }
- ]
- }
- /*
- {
- "id": id of the request,
- "method": name of the method,
- "params": [
- first parameter,
- second parameter,
- third parameter,
- context
- ]
- }
- */
- /*
- If the request needs authentication:
- - first parameter is the user id
- - second parameter is the cookie
- user id and cookie can be fetched with a call to "common.db.login(username, password)"
- Session can be closed with a call to "common.db.logout(user id, cookie)"
- Data could be manipulated with authenticated calls, these calls are "model.<modelname>.(search|read|create|write|delete|copy)".
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement