Action fails when context is explicitly None
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo GTK Client (MOVED TO GITHUB) |
Fix Committed
|
Undecided
|
OpenERP sa GTK client R&D |
Bug Description
If the client receives an action defined with a 'context' key explicitly set to None, it will fail to process it and the client's stdout will show:
Traceback (most recent call last):
File "XYZ/client/
model.
File "XYZ/client/
obj.
File "XYZ/client/
context.
TypeError: 'NoneType' object is not iterable
That can happen for example when a workflow activity returns an action and pass the context without making it is a dictionary - the framework will actually pass None instead.
Lionel Sausin.
Related branches
- OpenERP sa GTK client R&D: Pending requested
-
Diff: 25 lines (+8/-2)1 file modifiedbin/modules/action/main.py (+8/-2)
Changed in openobject-client: | |
status: | New → Fix Committed |
Hello,
GtK Team will look into your MP.
Thanks!