Skip to content

Instantly share code, notes, and snippets.

@lukebranch
Created April 25, 2015 05:29
Show Gist options
  • Save lukebranch/0cdef0d5141b07460604 to your computer and use it in GitHub Desktop.
Save lukebranch/0cdef0d5141b07460604 to your computer and use it in GitHub Desktop.
Aeroo Reports: Error while generating the report. "public" not defined "public" not defined For more reference inspect error logs. <type 'exceptions.Exception'>,Aeroo Reports: Error while generating the report. "public" not defined "public" not defined For more reference inspect error logs.,<traceback object at 0x7fa0c6186cf8>
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 530, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 567, in dispatch
result = self._call_function(**self.params)
File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 303, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/service/model.py", line 113, in wrapper
return f(dbname, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 300, in checked_call
return self.endpoint(*a, **kw)
File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 796, in __call__
return self.method(*args, **kw)
File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 396, in response_wrap
response = f(*args, **kw)
File "/usr/lib/python2.7/dist-packages/openerp/addons/web/controllers/main.py", line 940, in call_button
action = self._call_kw(model, method, args, {})
File "/usr/lib/python2.7/dist-packages/openerp/addons/web/controllers/main.py", line 928, in _call_kw
return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 241, in wrapper
return old_api(self, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 363, in old_api
result = method(recs, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/addons/product_catalog_aeroo_report/product_catalog.py", line 88, in generate_report
self = self.prepare_report()
File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 239, in wrapper
return new_api(self, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/addons/product_catalog_aeroo_report_public_categ/product_catalog.py", line 23, in prepare_report
self = super(product_catalog_report, self).prepare_report()
File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 239, in wrapper
return new_api(self, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/addons/product_catalog_aeroo_report/product_catalog.py", line 71, in prepare_report
[('id', 'child_of', category_ids)]).ids
File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 239, in wrapper
return new_api(self, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 462, in new_api
result = method(self._model, cr, uid, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/models.py", line 1639, in search
return self._search(cr, user, args, offset=offset, limit=limit, order=order, context=context, count=count)
File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 241, in wrapper
return old_api(self, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/models.py", line 4621, in _search
query = self._where_calc(cr, user, args, context=context)
File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 241, in wrapper
return old_api(self, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/models.py", line 4446, in _where_calc
where_clause, where_params = e.to_sql()
File "/usr/lib/python2.7/dist-packages/openerp/osv/expression.py", line 1256, in to_sql
assert len(stack) == 1
AssertionError
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment