I tried to update context in Odoo8 API i got below error and i also try to update self.with_context but it not display when i print self._context.
So i want to know what is difference between self.with_context and self._context?
Any have solution for below error?
File "/home/workspace/erp/openerp/addon/training/registration.py", line 106, in action_open_survey
self._context['survey_token'] = response_id.token
File "/home/workspace/erp/openerp/tools/misc.py", line 1250, in __setitem__
raise NotImplementedError("'__setitem__' not supported on frozendict")
NotImplementedError: '__setitem__' not supported on frozendict
Thanks in advance
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 1/12/15, 12:28 AM|
|Seen: 3849 times|
|Last updated: 7/1/16, 3:28 AM|