From a8767716cfd14abc7f87204d4d180811f663b648 Mon Sep 17 00:00:00 2001 From: Adrian Torres Date: Thu, 11 Jul 2019 08:47:29 +0200 Subject: [PATCH] [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 --- odoo/api.py | 20 +------------------- 1 file changed, 1 insertion(+), 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')