The "rpc service" API (xmlrpc/jsonrpc) have been deprecated in 19.0,
JSON-2 acting as replacement. It was at first planned to be removed in
19.1/20 but we succeeded in convicing the management It Was A Bad Idea.
The removal is postponed to Odoo 21.1/22. This makes so that if the
[Standard and extended support] policy remains the same until the
release of Odoo 22, all versions supported with no additional fees (20,
21, 22) at that time will have JSON-2:
| version | supported at 22 release | rpc services | JSON-2 |
| ------- | ----------------------- | --------------------- | ------ |
| 18.0 | no^1 | active | absent |
| 19.0 | no^1 | active but deprecated | active |
| 20.0 | yes | active but deprecated | active |
| 21.0 | yes | active but deprecated | active |
| 22.0 | yes | absent | active |
^1: with no additionnal fees.
[Standard and extended support]: https://www.odoo.com/documentation/19.0/administration/standard_extended_support.htmlclosesodoo/documentation#16765
Related: odoo/odoo#252721
Signed-off-by: Julien Castiaux (juc) <juc@odoo.com>
In particular, the following changes are made:
- Use the `class` and `attribute` admonitions along with custom
attributes to define classes, views' root attributes, views'
components, and attribute values. This allows re-using the responsive
design that was made for reference lists, and getting rid of the
previous implementation that relied on class attributes, which were not
intended for this usage and reduce readability while hindering further
contributions due to a lack of flexibility (no admonitions,
sub-attributes...)
- Use definition lists to define view types to allow for clearer and
longer descriptions.
- Rewrite and restructure the explanations when there is a lack clarity.
- Extract duplicated content to included RST files.
- Display SVG images into dedicated admonitions.
- Fix RST and English mistakes.
- Rename `view_architecture` to `view_architectures`, as it lists all
existing architectures and doesn't describe "the architecture of a
view".
- Replace underscores with hyphens in image file names to improve SEO.
task-3458320
closesodoo/documentation#5237closesodoo/documentation#7497
X-original-commit: a17eaf4c6f
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
Examples rely on `kolo/xmlrpc` as well as on the standard library package `log` to panic on error, matching snippets in other languages (which tend to raise exceptions).
As with other languages, only the RPC interaction is spelled out.
closesodoo/documentation#5129
Forward-port-of: odoo/documentation#5064
Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>