Amit Parik (OpenERP) (amp-openerp) has assigned this bug to you for OpenERP GTK 
Client:

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/bin/widget/view/form_gtk/parser.py", line 123, in 
button_clicked
    model.get_button_action(self.form.screen, id, self.attrs)
  File "XYZ/client/bin/widget/model/record.py", line 365, in get_button_action
    obj._exec_action(result, datas)
  File "XYZ/client/bin/modules/action/main.py", line 99, in _exec_action
    context.update(tools.expr_eval(action.get('context','{}'), context.copy()))
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.

** Affects: openobject-client
     Importance: Undecided
     Assignee: OpenERP sa GTK client R&D (openerp-dev-gtk)
         Status: Fix Committed

-- 
Action fails when context is explicitly None
https://bugs.launchpad.net/bugs/943393
You received this bug notification because you are a member of OpenERP sa GTK 
client R&D, which is a bug assignee.

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to