[IMP] ir.actions.server: slightly better sample/doc for python type actions
authorOlivier Dony <odo@openerp.com>
Fri, 16 Sep 2011 14:13:58 +0000 (16:13 +0200)
committerOlivier 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

index 78042c0..a2e107e 100644 (file)
@@ -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