Skip to Content
Menu
This question has been flagged
1 Reply
1257 Views

Traceback (most recent call last):
  File "C:\Program Files\Odoo 11.0\server\odoo\tools\cache.py", line 84, in lookup
    r = d[key]
  File "C:\Program Files\Odoo 11.0\server\odoo\tools\func.py", line 68, in wrapper
    return func(self, *args, **kwargs)
  File "C:\Program Files\Odoo 11.0\server\odoo\tools\lru.py", line 44, in __getitem__
    a = self.d[obj].me
KeyError: ('ir.model.data', <function IrModelData.xmlid_lookup at 0x02B50AE0>, 'point_of_sale.sale_details_report')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Program Files\Odoo 11.0\server\odoo\http.py", line 651, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "C:\Program Files\Odoo 11.0\server\odoo\http.py", line 310, in _handle_exception
    raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
  File "C:\Program Files\Odoo 11.0\server\odoo\tools\pycompat.py", line 87, in reraise
    raise value
  File "C:\Program Files\Odoo 11.0\server\odoo\http.py", line 693, in dispatch
    result = self._call_function(**self.params)
  File "C:\Program Files\Odoo 11.0\server\odoo\http.py", line 342, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "C:\Program Files\Odoo 11.0\server\odoo\service\model.py", line 97, in wrapper
    return f(dbname, *args, **kwargs)
  File "C:\Program Files\Odoo 11.0\server\odoo\http.py", line 335, in checked_call
    result = self.endpoint(*a, **kw)
  File "C:\Program Files\Odoo 11.0\server\odoo\http.py", line 937, in __call__
    return self.method(*args, **kw)
  File "C:\Program Files\Odoo 11.0\server\odoo\http.py", line 515, in response_wrap
    response = f(*args, **kw)
  File "c:\program files\odoo 11.0\server\odoo\addons\web\controllers\main.py", line 938, in call_button
    action = self._call_kw(model, method, args, {})
  File "c:\program files\odoo 11.0\server\odoo\addons\web\controllers\main.py", line 926, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "C:\Program Files\Odoo 11.0\server\odoo\api.py", line 689, in call_kw
    return call_kw_multi(method, model, args, kwargs)
  File "C:\Program Files\Odoo 11.0\server\odoo\api.py", line 680, in call_kw_multi
    result = method(recs, *args, **kwargs)
  File "c:\program files\odoo 11.0\server\odoo\addons\point_of_sale\wizard\pos_details.py", line 52, in generate_report
    return self.env.ref('point_of_sale.sale_details_report').report_action([], data=data)
  File "C:\Program Files\Odoo 11.0\server\odoo\api.py", line 794, in ref
    return self['ir.model.data'].xmlid_to_object(xml_id, raise_if_not_found=raise_if_not_found)
  File "c:\program files\odoo 11.0\server\odoo\addons\base\ir\ir_model.py", line 1359, in xmlid_to_object
    t = self.xmlid_to_res_model_res_id(xmlid, raise_if_not_found)
  File "c:\program files\odoo 11.0\server\odoo\addons\base\ir\ir_model.py", line 1343, in xmlid_to_res_model_res_id
    return self.xmlid_lookup(xmlid)[1:3]
  File "<decorator-gen-21>", line 2, in xmlid_lookup
  File "C:\Program Files\Odoo 11.0\server\odoo\tools\cache.py", line 89, in lookup
    value = d[key] = self.method(*args, **kwargs)
  File "c:\program files\odoo 11.0\server\odoo\addons\base\ir\ir_model.py", line 1332, in xmlid_lookup
    raise ValueError('External ID not found in the system: %s' % xmlid)
ValueError: External ID not found in the system: point_of_sale.sale_details_report

Avatar
Discard
Best Answer

For some reason system is not able to fine the report XML ID "sale_details_report". Somehow it is deleted. Try to upgrade point_of_sale module if that helps.

Avatar
Discard