summaryrefslogtreecommitdiff
path: root/doc/reference/orm.rst
diff options
context:
space:
mode:
authorRobot Odoo <xmo+roboto@odoo.com>2019-07-17 14:17:57 +0200
committerGitHub <noreply@github.com>2019-07-17 14:17:57 +0200
commitcc62447a44c2cf4e2edaf8a1f6d94520e799ddd9 (patch)
treea45f0984af5db1723fec83741b285ea92ab63598 /doc/reference/orm.rst
parentf6fdde96bddfedf8764cd8a73089e44340d476ae (diff)
parenta8767716cfd14abc7f87204d4d180811f663b648 (diff)
[MERGE] api.py: remove calls to @api.multi and deprecate its explicit usage
depends on https://github.com/odoo/odoo/pull/34556 closes odoo/odoo#34775 Signed-off-by: Adrian Torres <Elkasitu@users.noreply.github.com>
Diffstat (limited to 'doc/reference/orm.rst')
-rw-r--r--doc/reference/orm.rst10
1 files changed, 0 insertions, 10 deletions
diff --git a/doc/reference/orm.rst b/doc/reference/orm.rst
index 20440d5c414..47e8b1c9d61 100644
--- a/doc/reference/orm.rst
+++ b/doc/reference/orm.rst
@@ -565,16 +565,6 @@ Two decorators can expose a new-style method to the old API:
# can be called as
old_style_model.some_method(cr, uid, a_value, context=context)
-:func:`~odoo.api.multi`
- the method is exposed as taking a list of ids (possibly empty), its
- "old API" signature is ``cr, uid, ids, *arguments, context``::
-
- @api.multi
- def some_method(self, a_value):
- pass
- # can be called as
- old_style_model.some_method(cr, uid, [id1, id2], a_value, context=context)
-
Note that a method `create` decorated with :func:`~odoo.api.model` will always
be called with a single dictionary. A method `create` decorated with the variant
:func:`~odoo.api.model_create_multi` will always be called with a list of dicts.