[FIX] retro-compatibility: 'obj' is available in ir.action.server code
bzr revid: jvo@tinyerp.com-20100512114125-sh2wj2awjq8guvcn
This commit is contained in:
@@ -455,7 +455,7 @@ class actions_server(osv.osv):
|
||||
'type': lambda *a: 'ir.actions.server',
|
||||
'sequence': lambda *a: 5,
|
||||
'code': lambda *a: """# You can use the following variables
|
||||
# - object
|
||||
# - object or obj
|
||||
# - time
|
||||
# - cr
|
||||
# - uid
|
||||
@@ -562,7 +562,8 @@ class actions_server(osv.osv):
|
||||
'ids': ids,
|
||||
'cr': cr,
|
||||
'uid': uid,
|
||||
'object':obj
|
||||
'object':obj,
|
||||
'obj': obj,
|
||||
}
|
||||
exec action.code in localdict
|
||||
if 'action' in localdict:
|
||||
|
||||
Reference in New Issue
Block a user