projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87eddb1
)
[IMP] ir.actions.server: slightly better sample/doc for python type actions
author
Olivier Dony
<odo@openerp.com>
Fri, 16 Sep 2011 14:13:58 +0000
(16:13 +0200)
committer
Olivier Dony
<odo@openerp.com>
Fri, 16 Sep 2011 14:13:58 +0000
(16:13 +0200)
bzr revid: odo@openerp.com-
20110916141358
-z2mwij0u7y13jeuq
openerp/addons/base/ir/ir_actions.py
patch
|
blob
|
history
diff --git
a/openerp/addons/base/ir/ir_actions.py
b/openerp/addons/base/ir/ir_actions.py
index
78042c0
..
a2e107e
100644
(file)
--- a/
openerp/addons/base/ir/ir_actions.py
+++ b/
openerp/addons/base/ir/ir_actions.py
@@
-535,7
+535,7
@@
class actions_server(osv.osv):
'sequence': lambda *a: 5,
'code': lambda *a: """# You can use the following variables:
# - self: ORM model of the record on which the action is triggered
-# - object or obj: browse_record of the record on which the action is triggered
+# - object: browse_record of the record on which the action is triggered if there is one, otherwise None
# - pool: ORM model pool (i.e. self.pool)
# - time: Python time module
# - cr: database cursor