diff options
Diffstat (limited to 'odoo/api.py')
| -rw-r--r-- | odoo/api.py | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/odoo/api.py b/odoo/api.py index 432d5c5875d..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,25 +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:: - - @api.multi - 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') |
