summaryrefslogtreecommitdiff
path: root/doc/reference/guidelines.rst
diff options
context:
space:
mode:
authorYenthe666 <yenthevg@gmail.com>2019-07-29 12:49:22 +0000
committerVictor Feyens <vfe@odoo.com>2019-07-30 15:39:19 +0000
commitce00210b612b2691ff37bb6e06ce908375e4b6cf (patch)
tree1d52029c67eec72c1fff39e5555de9769cf391cb /doc/reference/guidelines.rst
parent7092d9d17655937b4d86da14de43892ad20b1c65 (diff)
[IMP] doc: remove calls to @api.multi and @api.one
Those two decorators are removed/deprecated since recent commits but some references remained in the documentation. api.multi is deprecated since https://github.com/odoo/odoo/commit/cc62447a44c2cf4e2edaf8a1f6d94520e799ddd9 api.one was removed with https://github.com/odoo/odoo/commit/407f1f6cdb87a59bbad9f853078d7345cdf9f60c closes odoo/odoo#35261 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
Diffstat (limited to 'doc/reference/guidelines.rst')
-rw-r--r--doc/reference/guidelines.rst6
1 files changed, 1 insertions, 5 deletions
diff --git a/doc/reference/guidelines.rst b/doc/reference/guidelines.rst
index c1a282cf19f..f4c5148aaa6 100644
--- a/doc/reference/guidelines.rst
+++ b/doc/reference/guidelines.rst
@@ -595,12 +595,8 @@ on self to treat each record.
for record in self:
record.do_cool_stuff()
-Avoid to use ``api.one`` decorator : this will probably not do what you expected,
-and extending a such method is not as easy than a *api.multi* method, since it
-returns a list of result (ordered by recordset ids).
-
For performance issue, when developping a 'stat button' (for instance), do not
-perform a ``search`` or a ``search_count`` in a loop in a ``api.multi`` method. It
+perform a ``search`` or a ``search_count`` in a loop. It
is recommended to use ``read_group`` method, to compute all value in only one request.
.. code-block:: python