Skip to content

Instantly share code, notes, and snippets.

@lukebranch
Created April 1, 2015 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lukebranch/ac1fa483f608ce5cb9fd to your computer and use it in GitHub Desktop.
Save lukebranch/ac1fa483f608ce5cb9fd to your computer and use it in GitHub Desktop.
TypeError: write() got an unexpected keyword argument 'context'
Traceback (most recent call last):
File "/opt/odoo/odoo-server/openerp/http.py", line 530, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/opt/odoo/odoo-server/openerp/http.py", line 567, in dispatch
result = self._call_function(**self.params)
File "/opt/odoo/odoo-server/openerp/http.py", line 303, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/opt/odoo/odoo-server/openerp/service/model.py", line 113, in wrapper
return f(dbname, *args, **kwargs)
File "/opt/odoo/odoo-server/openerp/http.py", line 300, in checked_call
return self.endpoint(*a, **kw)
File "/opt/odoo/odoo-server/openerp/http.py", line 796, in __call__
return self.method(*args, **kw)
File "/opt/odoo/odoo-server/openerp/http.py", line 396, in response_wrap
response = f(*args, **kw)
File "/opt/odoo/odoo-server/addons/web/controllers/main.py", line 939, in call_button
action = self._call_kw(model, method, args, {})
File "/opt/odoo/odoo-server/addons/web/controllers/main.py", line 927, in _call_kw
return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
File "/opt/odoo/odoo-server/openerp/api.py", line 241, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/custom/addons/report_aeroo_direct_print/report_aeroo_direct_print.py", line 163, in refresh
r.write({'note':note}, context=context)
File "/opt/odoo/odoo-server/openerp/api.py", line 239, in wrapper
return new_api(self, *args, **kwargs)
TypeError: write() got an unexpected keyword argument 'context'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment