Action Server "python code" : code and commentary do not match !
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
While defining a "python code" action server, the help text in the "python code" field is :
# You can use the following variables
# - object
# - object2
# - time
# - cr
# - uid
# - ids
# If you plan to return an action, assign: action = {...}
The processing code of this kind of action is :
if action.
localdict = {
'self': self.pool.
'context': context,
'time': time,
'ids': ids,
'cr': cr,
'uid': uid,
'obj':obj
}
exec action.code in localdict
I think the content of the text field default value and the processing code do not match ! This is far from being critical but correcting this could help saving time in debugging !
Related branches
affects: | account-banking → openobject-server |
Corrections made by revision 1961 <email address hidden>.
Thanks.