Skip to content
Snippets Groups Projects
Commit 64773140 authored by mreficent's avatar mreficent Committed by Martin Trigaux
Browse files

[IMP] doc: remove calls to @api.guess and @api.noguess


Those two decorators are removed/deprecated since recent commits but
some references remained in the documentation.

api.guess and api.noguess is deprecated and removed since c552fb7a

closes odoo/odoo#35332

Signed-off-by: default avatarMartin Trigaux (mat) <mat@odoo.com>
parent ee1f0ef1
No related branches found
No related tags found
No related merge requests found
......@@ -1242,10 +1242,3 @@ automatically fill matched parameters from the current
:attr:`~odoo.api.Environment.user` and
:attr:`~odoo.api.Environment.context`) or the current recordset (for ``id``
and ``ids``).
In the rare cases where it is necessary, the bridging can be customized by
decorating the old-style method:
* disabling it entirely, by decorating a method with
:func:`~odoo.api.noguess` there will be no bridging and methods will be
called the exact same way from the new and old API styles
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
# decorator makes wrappers that have the same API as their wrapped function;
# this is important for the odoo.api.guess() that relies on signatures
# decorator makes wrappers that have the same API as their wrapped function
from collections import defaultdict
from decorator import decorator
from inspect import formatargspec, getargspec
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment