Under: Edit Company Data > Report Configuration > Configuration (RML)
I'm trying to use the preview Header/footer button, but it didn't work. What is wrong with my External_ID?
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/openerp/addons/website/models/ir_http.py", line 199, in _handle_exception
response = super(ir_http, self)._handle_exception(exception)
File "/usr/lib/python2.7/dist-packages/openerp/addons/base/ir/ir_http.py", line 145, in _handle_exception
return request._handle_exception(exception)
File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 666, in _handle_exception
return super(HttpRequest, self)._handle_exception(exception)
File "/usr/lib/python2.7/dist-packages/openerp/addons/base/ir/ir_http.py", line 171, in _dispatch
result = request.dispatch()
File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 684, in dispatch
r = self._call_function(**self.params)
File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 310, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/service/model.py", line 118, in wrapper
return f(dbname, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 307, in checked_call
return self.endpoint(*a, **kw)
File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 803, in __call__
return self.method(*args, **kw)
File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 403, in response_wrap
response = f(*args, **kw)
File "/usr/lib/python2.7/dist-packages/openerp/addons/report/controllers/main.py", line 62, in report_routes
html = report_obj.get_html(cr, uid, docids, reportname, data=options_data, context=context)
File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 250, in wrapper
partner_record = recs.find_partner(arg)
File "/usr/lib/python2.7/dist-packages/openerp/addons/report/models/report.py", line 176, in get_html
return self.render(cr, uid, [], report.report_name, docargs, context=context)
File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 250, in wrapper
partner_record = recs.find_partner(arg)
File "/usr/lib/python2.7/dist-packages/openerp/addons/report/models/report.py", line 152, in render
return view_obj.render(cr, uid, template, values, context=context)
File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 250, in wrapper
partner_record = recs.find_partner(arg)
File "/usr/lib/python2.7/dist-packages/openerp/addons/website/models/ir_ui_view.py", line 166, in render
File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 248, in wrapper
File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 565, in new_api
return upgrade(self, result, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/addons/website/models/website.py", line 283, in get_template
model, view_id = request.registry["ir.model.data"].get_object_reference(cr, uid, module, xmlid)
File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 250, in wrapper
partner_record = recs.find_partner(arg)
File "/usr/lib/python2.7/dist-packages/openerp/addons/base/ir/ir_model.py", line 943, in get_object_reference
#search on id found in result to check if current user has read access right
File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 250, in wrapper
partner_record = recs.find_partner(arg)
File "<string>", line 2, in xmlid_lookup
File "/usr/lib/python2.7/dist-packages/openerp/tools/cache.py", line 74, in lookup
value = d[key] = self.method(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/openerp/addons/base/ir/ir_model.py", line 901, in xmlid_lookup
ValueError: External ID not found in the system: preview.report