[FIX] retro-compatibility: 'obj' is available in ir.action.server code

bzr revid: jvo@tinyerp.com-20100512114125-sh2wj2awjq8guvcn
This commit is contained in:
Jay (Open ERP)
2010-05-12 17:11:25 +05:30
parent 2205170823
commit 53ef884ff2
+3 -2
View File
@@ -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: