summaryrefslogtreecommitdiff
path: root/odoo/api.py
diff options
context:
space:
mode:
authorAdrian Torres <adt@odoo.com>2019-07-11 08:47:29 +0200
committerAdrian Torres <adt@odoo.com>2019-07-17 14:13:12 +0200
commita8767716cfd14abc7f87204d4d180811f663b648 (patch)
treea45f0984af5db1723fec83741b285ea92ab63598 /odoo/api.py
parent4b38cc6590abcb58a0ca102a06063eb3db7ac1f4 (diff)
[REM] core: remove @api.multi
kw_multi is the default API, so the decorator is no longer necessary and hasn't been for a long time
Diffstat (limited to 'odoo/api.py')
-rw-r--r--odoo/api.py20
1 files changed, 1 insertions, 19 deletions
diff --git a/odoo/api.py b/odoo/api.py
index 8312ae58bae..87534567cfe 100644
--- a/odoo/api.py
+++ b/odoo/api.py
@@ -34,7 +34,7 @@
__all__ = [
'Environment',
'Meta',
- 'model', 'multi',
+ 'model',
'constrains', 'depends', 'onchange', 'returns',
'call_kw',
]
@@ -289,24 +289,6 @@ def model(method):
return method
-def multi(method):
- """ Decorate a record-style method where ``self`` is a recordset. The method
- typically defines an operation on records. Such a method::
-
- def method(self, args):
- ...
-
- may be called in both record and traditional styles, like::
-
- # recs = model.browse(cr, uid, ids, context)
- recs.method(args)
-
- model.method(cr, uid, ids, args, context=context)
- """
- method._api = 'multi'
- return method
-
-
_create_logger = logging.getLogger(__name__ + '.create')