diff options
| author | Denis Ledoux <dle@odoo.com> | 2020-02-25 09:51:59 +0000 |
|---|---|---|
| committer | Denis Ledoux <dle@odoo.com> | 2020-02-25 12:06:06 +0000 |
| commit | c5b9bccf6b1854b3d04f6415ecfc3755ed8ab959 (patch) | |
| tree | 303ed7aaa1e4152c03c6d6a35571f0af1e4f711c /odoo/api.py | |
| parent | 1dfda363a993265e2e4c649bd05ee6acabc97339 (diff) | |
[FIX] doc: api.model no longer accept traditional style call
Since we dropped the old-api style compatibility layer,
some years ago.
This docstring was added to the 13.0 documentation
thanks to odoo/odoo#44838
So it's best not to mention this old-api style
in our latest documentation
closes odoo/odoo#46223
X-original-commit: 63691c78006fbf7077eb13f3045be21a18bbe753
Signed-off-by: Denis Ledoux (dle) <dle@odoo.com>
Diffstat (limited to 'odoo/api.py')
| -rw-r--r-- | odoo/api.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/odoo/api.py b/odoo/api.py index ec279a7ceac..f4dbeb8b97f 100644 --- a/odoo/api.py +++ b/odoo/api.py @@ -297,14 +297,6 @@ def model(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, args, context=context) - - Notice that no ``ids`` are passed to the method in the traditional style. """ if method.__name__ == 'create': return model_create_single(method) |
