[FIX] Server Actions: evaluating dict corrected
lp bug: https://launchpad.net/bugs/516568 fixed bzr revid: jvo@tinyerp.com-20100208123147-8ycxxoawk22f1pfp
This commit is contained in:
@@ -420,7 +420,6 @@ class actions_server(osv.osv):
|
||||
'sequence': lambda *a: 5,
|
||||
'code': lambda *a: """# You can use the following variables
|
||||
# - object
|
||||
# - object2
|
||||
# - time
|
||||
# - cr
|
||||
# - uid
|
||||
@@ -527,7 +526,7 @@ class actions_server(osv.osv):
|
||||
'ids': ids,
|
||||
'cr': cr,
|
||||
'uid': uid,
|
||||
'obj':obj
|
||||
'object':obj
|
||||
}
|
||||
exec action.code in localdict
|
||||
if 'action' in localdict:
|
||||
|
||||
Reference in New Issue
Block a user