Created
April 1, 2015 10:36
-
-
Save lukebranch/6109989e6048ad313f63 to your computer and use it in GitHub Desktop.
report_aeroo_direct_print : NameError: global name 'context' is not defined
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 935, in call_kw | |
return self._call_kw(model, method, args, kwargs) | |
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/odoo-server/openerp/api.py", line 393, in old_api | |
result = new_api(recs, *args, **kwargs) | |
File "/opt/odoo/odoo-server/openerp/api.py", line 397, in new_api | |
result = [method(rec, *args, **kwargs) for rec in self] | |
File "/opt/odoo/custom/addons/report_aeroo_direct_print/report_aeroo_direct_print.py", line 236, in write | |
recs._unset_report_server_action() | |
File "/opt/odoo/odoo-server/openerp/api.py", line 239, in wrapper | |
return new_api(self, *args, **kwargs) | |
File "/opt/odoo/odoo-server/openerp/api.py", line 397, in new_api | |
result = [method(rec, *args, **kwargs) for rec in self] | |
File "/opt/odoo/custom/addons/report_aeroo_direct_print/report_aeroo_direct_print.py", line 289, in _unset_report_server_action | |
ctx = context.copy() | |
NameError: global name 'context' is not defined |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment