summaryrefslogtreecommitdiff
path: root/doc/reference
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2015-02-11 17:25:33 +0100
committerChristophe Simonis <chs@odoo.com>2015-02-11 17:25:33 +0100
commit7f2de623788f2ae02ba75997f156d141a92cff34 (patch)
treeee919a3553d41a493c976d35563af7a1aa6c2cd3 /doc/reference
parentd9d885badbfdaaf5452947e37699c5ae36990dc6 (diff)
parent33a8989d77f44b093214550b8f23cb386a990981 (diff)
[MERGE] forward port of branch 8.0 up to 33a8989
Diffstat (limited to 'doc/reference')
-rw-r--r--doc/reference/orm.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/reference/orm.rst b/doc/reference/orm.rst
index 6b609e52287..3f0da8b7b46 100644
--- a/doc/reference/orm.rst
+++ b/doc/reference/orm.rst
@@ -498,7 +498,7 @@ Two decorators can expose a new-style method to the old API:
empty. Its "old API" signature is ``cr, uid, *arguments, context``::
@api.model
- def some_method(foo):
+ def some_method(self, a_value):
pass
# can be called as
old_style_model.some_method(cr, uid, a_value, context=context)
@@ -508,7 +508,7 @@ Two decorators can expose a new-style method to the old API:
"old API" signature is ``cr, uid, ids, *arguments, context``::
@api.multi
- def some_method(foo):
+ def some_method(self, a_value):
pass
# can be called as
old_style_model.some_method(cr, uid, [id1, id2], a_value, context=context)
@@ -525,7 +525,7 @@ return lists of ids, there is also a decorator managing this:
>>> @api.multi
... @api.returns('self')
- ... def some_method():
+ ... def some_method(self):
... return self
>>> new_style_model = env['a.model'].browse(1, 2, 3)
>>> new_style_model.some_method()