@@ -34,6 +34,8 @@ list or install Odoo add-ons.
3434
3535.. automethod :: Client.clone_database
3636
37+ .. automethod :: Client.drop_database
38+
3739.. automethod :: Client.login
3840
3941
@@ -50,9 +52,38 @@ list or install Odoo add-ons.
5052 ``ODOOLY_SSL_UNVERIFIED=1 ``.
5153
5254
55+ Odoo Webclient API
56+ ~~~~~~~~~~~~~~~~~~
57+
58+ These HTTP routes were developed for the Odoo Web application. They are now
59+ used by Odooly to provide high level methods on :class: `Env `
60+ and :class: `Model `.
61+
62+ .. attribute :: Client.database
63+
64+ Expose the ``database `` :class: `WebAPI `.
65+
66+ Example: :meth: `Client.database.list ` method.
67+
68+ .. attribute :: Client.web
69+
70+ Expose the root of the ``/web `` API.
71+
72+ .. attribute :: Client.web_dataset
73+
74+ .. attribute :: Client.web_session
75+
76+ .. attribute :: Client.web_webclient
77+
78+
5379Odoo RPC Services
5480~~~~~~~~~~~~~~~~~
5581
82+ .. note ::
83+
84+ These RPC services are deprecated in Odoo 19.0. They are
85+ scheduled for removal in Odoo 20.0 in 2026.
86+
5687The naked Odoo RPC services are exposed too.
5788The :attr: `~Client.db ` and the :attr: `~Client.common ` services expose few
5889methods which might be helpful for server administration. Use the
@@ -92,12 +123,16 @@ Please refer to `the Odoo documentation`_ for more details.
92123
93124 Removed in OpenERP 7.
94125
126+ .. autoclass :: WebAPI
127+ :members:
128+ :undoc-members:
129+
95130.. autoclass :: Service
96131 :members:
97132 :undoc-members:
98133
99134.. _the Odoo documentation :
100- .. _the Odoo API : http ://doc .odoo.com/v6.1 /developer/12_api .html#api
135+ .. _the Odoo API : https ://www .odoo.com/documentation/19.0 /developer/reference/external_rpc_api .html
101136
102137
103138Environment
@@ -131,6 +166,16 @@ Environment
131166
132167 Cursor on the current database.
133168
169+ .. automethod :: session_authenticate
170+
171+ .. automethod :: session_destroy
172+
173+ .. attribute :: session_info
174+
175+ Dictionary returned when a Webclient session is authenticated.
176+ It contains ``uid `` and ``user_context `` among other user's preferences
177+ and server parameters.
178+
134179 .. automethod :: sudo(user=SUPERUSER_ID)
135180
136181
@@ -151,6 +196,12 @@ Please refer to `the Odoo documentation`_ for details.
151196
152197.. automethod :: Env.execute(obj, method, *params, **kwargs)
153198
199+ .. automethod :: Env._call_kw(obj, method, *params, **kwargs)
200+
201+ .. attribute :: Env._web(obj, method, *params, **kwargs)
202+
203+ Expose the root of the ``/web `` API.
204+
154205.. method :: Env.exec_workflow(obj, signal, obj_id)
155206
156207 Wrapper around ``object.exec_workflow `` RPC method.
@@ -212,7 +263,7 @@ Python script or interactively in a Python session.
212263 It is not recommended to install or upgrade modules in offline mode when
213264 any web server is still running: the operation will not be signaled to
214265 other processes. This restriction does not apply when connected through
215- XML-RPC or JSON- RPC.
266+ Webclient API or other RPC API .
216267
217268
218269.. _model-and-records :
@@ -222,7 +273,7 @@ Model and Records
222273
223274The :class: `Env ` provides a high level API similar to the Odoo API, which
224275encapsulates objects into `Active Records
225- <http ://www.martinfowler.com/eaaCatalog/activeRecord.html> `_.
276+ <https ://www.martinfowler.com/eaaCatalog/activeRecord.html> `_.
226277
227278The :class: `Model ` is instantiated using the ``client.env[...] `` syntax.
228279
0 commit comments