[IMP] Add support for JSON-2 API (Odoo >= 19.0 with API key)#109
Conversation
0f18c52 to
91a1b29
Compare
I could be a good idea to special-case the few CRUD (create, search, write, unlink) methods and to have an automatic rewrite positional -> keyword handled by the lib. |
|
@Julien00859 I was wondering the same indeed. At first it was a design to not implement methods client-side but |
|
One last thing, you can download the technical documentation of every model through the Footnotes |
|
@Julien00859 nice! Good to know indeed |
159e56b to
6806ec1
Compare
…>= 19.0 This change introduces a new dependency against the `requests` package to ease the upload of multipart form-data content.
|
@Julien00859 thank you for your input about |
Address #101
What's changed with JSON-2 API enabled
ODOO.login()now accepts a new keyword argumentapi_key, used only if Odoo >= 19.0. If set,loginandpasswordparameters will be ignored, and newODOO.json2_readyproperty will returnTrue, meaning the connection is using JSON-2 API./doc-bearer/<model>.jsonendpoint which provides method signatures.ODOO.json2_readyproperty can be used by users to detect if current connection is JSON-2 ready (and adapt RPC queries accordingly)TODO :
odoorpc.dbto use/web/databasecontrollers