diff options
| author | Robot Odoo <xmo+roboto@odoo.com> | 2019-07-17 14:17:57 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-17 14:17:57 +0200 |
| commit | cc62447a44c2cf4e2edaf8a1f6d94520e799ddd9 (patch) | |
| tree | a45f0984af5db1723fec83741b285ea92ab63598 /odoo/api.py | |
| parent | f6fdde96bddfedf8764cd8a73089e44340d476ae (diff) | |
| parent | a8767716cfd14abc7f87204d4d180811f663b648 (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 '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') |
