[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>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user