Skip to Content
Menu
This question has been flagged
2 Replies
4430 Views

Odoo Server Error

Traceback (most recent call last):

  File "/opt/odoo/odoo-10.0-e-20170412/odoo/http.py", line 638, in _handle_exception

    return super(JsonRequest, self)._handle_exception(exception)

  File "/opt/odoo/odoo-10.0-e-20170412/odoo/http.py", line 675, in dispatch

    result = self._call_function(**self.params)

  File "/opt/odoo/odoo-10.0-e-20170412/odoo/http.py", line 331, in _call_function

    return checked_call(self.db, *args, **kwargs)

  File "/opt/odoo/odoo-10.0-e-20170412/odoo/service/model.py", line 119, in wrapper

    return f(dbname, *args, **kwargs)

  File "/opt/odoo/odoo-10.0-e-20170412/odoo/http.py", line 324, in checked_call

    result = self.endpoint(*a, **kw)

  File "/opt/odoo/odoo-10.0-e-20170412/odoo/http.py", line 933, in __call__

    return self.method(*args, **kw)

  File "/opt/odoo/odoo-10.0-e-20170412/odoo/http.py", line 504, in response_wrap

    response = f(*args, **kw)

  File "/opt/odoo/odoo-10.0-e-20170412/addons/web/controllers/main.py", line 882, in call_button

    action = self._call_kw(model, method, args, {})

  File "/opt/odoo/odoo-10.0-e-20170412/addons/web/controllers/main.py", line 870, in _call_kw

    return call_kw(request.env[model], method, args, kwargs)

  File "/opt/odoo/odoo-10.0-e-20170412/odoo/api.py", line 681, in call_kw

    return call_kw_multi(method, model, args, kwargs)

  File "/opt/odoo/odoo-10.0-e-20170412/odoo/api.py", line 672, in call_kw_multi

    result = method(recs, *args, **kwargs)

  File "/opt/odoo/odoo-10.0-e-20170412/addons/base/module/module.py", line 410, in button_immediate_install

    return self._button_immediate_function(type(self).button_install)

  File "/opt/odoo/odoo-10.0-e-20170412/addons/base/module/module.py", line 484, in _button_immediate_function

    modules.registry.Registry.new(self._cr.dbname, update_module=True)

  File "/opt/odoo/odoo-10.0-e-20170412/odoo/modules/registry.py", line 78, in new

    odoo.modules.load_modules(registry._db, force_demo, status, update_module)

  File "/opt/odoo/odoo-10.0-e-20170412/odoo/modules/loading.py", line 339, in load_modules

    loaded_modules, update_module)

  File "/opt/odoo/odoo-10.0-e-20170412/odoo/modules/loading.py", line 237, in load_marked_modules

    loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)

  File "/opt/odoo/odoo-10.0-e-20170412/odoo/modules/loading.py", line 159, in load_module_graph

    _load_data(cr, module_name, idref, mode, kind='demo')

  File "/opt/odoo/odoo-10.0-e-20170412/odoo/modules/loading.py", line 95, in _load_data

    tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report)

  File "/opt/odoo/odoo-10.0-e-20170412/odoo/tools/convert.py", line 848, in convert_file

    convert_xml_import(cr, module, fp, idref, mode, noupdate, report)

  File "/opt/odoo/odoo-10.0-e-20170412/odoo/tools/convert.py", line 918, in convert_xml_import

    obj.parse(doc.getroot(), mode=mode)

  File "/opt/odoo/odoo-10.0-e-20170412/odoo/tools/convert.py", line 799, in parse

    self.parse(rec, mode)

  File "/opt/odoo/odoo-10.0-e-20170412/odoo/tools/convert.py", line 802, in parse

    self._tags[rec.tag](rec, de, mode=mode)

  File "/opt/odoo/odoo-10.0-e-20170412/odoo/tools/convert.py", line 698, in _tag_record

    f_val = self.id_get(f_ref)

  File "/opt/odoo/odoo-10.0-e-20170412/odoo/tools/convert.py", line 785, in id_get

    res = self.model_id_get(id_str, raise_if_not_found)

  File "/opt/odoo/odoo-10.0-e-20170412/odoo/tools/convert.py", line 791, in model_id_get

    return self.env['ir.model.data'].xmlid_to_res_model_res_id(id_str, raise_if_not_found=raise_if_not_found)

  File "/opt/odoo/odoo-10.0-e-20170412/addons/base/ir/ir_model.py", line 1069, in xmlid_to_res_model_res_id

    return self.xmlid_lookup(xmlid)[1:3]

  File "<decorator-gen-5>", line 2, in xmlid_lookup

  File "/opt/odoo/odoo-10.0-e-20170412/odoo/tools/cache.py", line 87, in lookup

    value = d[key] = self.method(*args, **kwargs)

  File "/opt/odoo/odoo-10.0-e-20170412/addons/base/ir/ir_model.py", line 1058, in xmlid_lookup

    raise ValueError('External ID not found in the system: %s' % xmlid)

ParseError: "External ID not found in the system: base.user_demo" while parsing /opt/odoo/odoo-10.0-e-20170412/addons/hr/data/hr_demo.xml:210, near

<record id="employee_qdp" model="hr.employee">

          <field name="name">Gilles Gravie</field>

          <field name="user_id" ref="base.user_demo"/>

          <field name="department_id" ref="dep_rd"/>

          <field name="parent_id" ref="employee_al"/>

          <field name="job_id" ref="hr.job_developer"/>

          <field name="category_ids" eval="[(6, 0, [ref('employee_category_4')])]"/>

          <field name="work_location">Building 1, Second Floor</field>

          <field name="work_phone">+3281813700</field>

          <field name="work_email">gilles@openerp.com</field>

          <field name="image" type="base64" file="hr/static/img/employee_qdp-image.png"/>

      </record>


Avatar
Discard
Best Answer

Oh! you have deleted the demo user.  create a record for an external identifier with value, 

for this create a new user called demo and get the id from the URL

module: base
external identifier: user_demo
model name : res.user
record id: newly created demo user id.

will work!


Avatar
Discard
Best Answer

Hello,

This means you are trying to access an id which is not defined.

base.user_demo is used in demo databases check if your demo data is checked or not

Avatar
Discard