From c5b9bccf6b1854b3d04f6415ecfc3755ed8ab959 Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Tue, 25 Feb 2020 09:51:59 +0000 Subject: [PATCH] [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) --- odoo/api.py | 8 -------- 1 file changed, 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)