0

please help me with this error in odoo 14. i have custome module in odoo 14, and i want to install the module but when i try to install it i got this error message like this, i have try so many solutions but still doesn't work. any solutions which line i have to change so i didnt got error again?? it really help me if you guys can fix this problem.

thankyou :)

Error:
Odoo Server Error

Traceback (most recent call last):
  File "C:\Users\IT UW\odoo14\odoo\odoo\tools\cache.py", line 85, in lookup
    r = d[key]
  File "C:\Users\IT UW\odoo14\odoo\odoo\tools\func.py", line 71, in wrapper
    return func(self, *args, **kwargs)
  File "C:\Users\IT UW\odoo14\odoo\odoo\tools\lru.py", line 34, in __getitem__
    a = self.d[obj]
KeyError: ('ir.model.data', <function IrModelData.xmlid_lookup at 0x000001A069AA6438>, 'mes_plan.view_mes_plan_search')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\IT UW\odoo14\odoo\odoo\tools\convert.py", line 677, in _tag_root
    f(rec)
  File "C:\Users\IT UW\odoo14\odoo\odoo\tools\convert.py", line 564, in _tag_record
    f_val = self.id_get(f_ref)
  File "C:\Users\IT UW\odoo14\odoo\odoo\tools\convert.py", line 660, in id_get
    res = self.model_id_get(id_str, raise_if_not_found)
  File "C:\Users\IT UW\odoo14\odoo\odoo\tools\convert.py", line 666, 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 "C:\Users\IT UW\odoo14\odoo\odoo\addons\base\models\ir_model.py", line 1945, in xmlid_to_res_model_res_id
    return self.xmlid_lookup(xmlid)[1:3]
  File "<decorator-gen-35>", line 2, in xmlid_lookup
  File "C:\Users\IT UW\odoo14\odoo\odoo\tools\cache.py", line 90, in lookup
    value = d[key] = self.method(*args, **kwargs)
  File "C:\Users\IT UW\odoo14\odoo\odoo\addons\base\models\ir_model.py", line 1938, in xmlid_lookup
    raise ValueError('External ID not found in the system: %s' % xmlid)
ValueError: External ID not found in the system: mes_plan.view_mes_plan_search

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "C:\Users\IT UW\odoo14\odoo\odoo\addons\base\models\ir_http.py", line 237, in _dispatch
    result = request.dispatch()
  File "C:\Users\IT UW\odoo14\odoo\odoo\http.py", line 696, in dispatch
    result = self._call_function(**self.params)
  File "C:\Users\IT UW\odoo14\odoo\odoo\http.py", line 370, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "C:\Users\IT UW\odoo14\odoo\odoo\service\model.py", line 94, in wrapper
    return f(dbname, *args, **kwargs)
  File "C:\Users\IT UW\odoo14\odoo\odoo\http.py", line 358, in checked_call
    result = self.endpoint(*a, **kw)
  File "C:\Users\IT UW\odoo14\odoo\odoo\http.py", line 919, in __call__
    return self.method(*args, **kw)
  File "C:\Users\IT UW\odoo14\odoo\odoo\http.py", line 544, in response_wrap
    response = f(*args, **kw)
  File "c:\users\it uw\odoo14\odoo\addons\web\controllers\main.py", line 1374, in call_button
    action = self._call_kw(model, method, args, kwargs)
  File "c:\users\it uw\odoo14\odoo\addons\web\controllers\main.py", line 1362, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "C:\Users\IT UW\odoo14\odoo\odoo\api.py", line 399, in call_kw
    result = _call_kw_multi(method, model, args, kwargs)
  File "C:\Users\IT UW\odoo14\odoo\odoo\api.py", line 386, in _call_kw_multi
    result = method(recs, *args, **kwargs)
  File "<decorator-gen-71>", line 2, in button_immediate_install
  File "C:\Users\IT UW\odoo14\odoo\odoo\addons\base\models\ir_module.py", line 74, in check_and_log
    return method(self, *args, **kwargs)
  File "C:\Users\IT UW\odoo14\odoo\odoo\addons\base\models\ir_module.py", line 478, in button_immediate_install
    return self._button_immediate_function(type(self).button_install)
  File "C:\Users\IT UW\odoo14\odoo\odoo\addons\base\models\ir_module.py", line 596, in _button_immediate_function
    modules.registry.Registry.new(self._cr.dbname, update_module=True)
  File "C:\Users\IT UW\odoo14\odoo\odoo\modules\registry.py", line 89, in new
    odoo.modules.load_modules(registry._db, force_demo, status, update_module)
  File "C:\Users\IT UW\odoo14\odoo\odoo\modules\loading.py", line 461, in load_modules
    loaded_modules, update_module, models_to_check)
  File "C:\Users\IT UW\odoo14\odoo\odoo\modules\loading.py", line 349, in load_marked_modules
    perform_checks=perform_checks, models_to_check=models_to_check
  File "C:\Users\IT UW\odoo14\odoo\odoo\modules\loading.py", line 222, in load_module_graph
    load_data(cr, idref, mode, kind='data', package=package)
  File "C:\Users\IT UW\odoo14\odoo\odoo\modules\loading.py", line 69, in load_data
    tools.convert_file(cr, package.name, filename, idref, mode, noupdate, kind)
  File "C:\Users\IT UW\odoo14\odoo\odoo\tools\convert.py", line 733, in convert_file
    convert_xml_import(cr, module, fp, idref, mode, noupdate)
  File "C:\Users\IT UW\odoo14\odoo\odoo\tools\convert.py", line 799, in convert_xml_import
    obj.parse(doc.getroot())
  File "C:\Users\IT UW\odoo14\odoo\odoo\tools\convert.py", line 719, in parse
    self._tag_root(de)
  File "C:\Users\IT UW\odoo14\odoo\odoo\tools\convert.py", line 677, in _tag_root
    f(rec)
  File "C:\Users\IT UW\odoo14\odoo\odoo\tools\convert.py", line 685, in _tag_root
    )) from e
Exception

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "C:\Users\IT UW\odoo14\odoo\odoo\http.py", line 652, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "C:\Users\IT UW\odoo14\odoo\odoo\http.py", line 317, in _handle_exception
    raise exception.with_traceback(None) from new_cause
odoo.tools.convert.ParseError: while parsing file:/c:/users/it%20uw/odoo14/rungaddons/uw_uj/mes_plan/views/menu.xml:4, near
<record id="action_mes_plan_list" model="ir.actions.act_window">
            <field name="name">MES Plan</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">plan.mes</field>
            <field name="view_mode">tree,form,pivot,graph,kanban,gantt</field>
            <field name="domain">[]</field>
            <field name="search_view_id" ref="mes_plan.view_mes_plan_search"/>
            <field name="context">{'search_default_todo' : True}</field>
            <field name="help" type="html">
                <p class="oe_view_nocontent_create">
                    Click to add Plan MES Produksi
                </p>
                <p>klik tombol create untuk bikin MES Plan</p>
            </field>
    </record>
it uw
  • 1
  • External ID `mes_plan.view_mes_plan_search` is not found in the system. Add the search view before the action – Kenly Jun 11 '23 at 13:04

1 Answers1

0

So this ugly tracebacks indicates that there is an issue with xml parser in odoo while converting the uw_uj/mes_plan_views to an "ir.actions.act_window" model, which represents the view of your plan.mes.

The most critical part of the traceback is:

"ValueError: External ID not found in the system: mes_plan.view_mes_plan_search"

The error is caused by the following line

<field name="search_view_id" ref="mes_plan.view_mes_plan_search"/>

It suggest that the relation fields search_view_id of the ir.actions.act_window model,responsible for displaying filters in the UI,is missing

To troubleshoot this issue, you can follow these steps:

  1. Open the menu.xml file located at c:/users/it%20uw/odoo14/rungaddons/uw_uj/mes_plan/views/menu.xml in a text editor.
  2. Locate the tag with the id="action_mes_plan_list" attribute
  3. Look for the <field name="search_view_id" ref="mes_plan.view_mes_plan_search"/> within that tag
  4. Ensure that the external ID mes_plan.view_mes_plan_search referenced in the ref attribute actually exists in your Odoo system. Double-check the spelling and casing to make sure it matches the correct external ID.
  5. If the referenced external ID doesn't exist, you can either create the missing view or correct the reference to an existing view.
  6. Save the changes to the menu.xml file.
  7. restart the system
  • Both of your current answers appear likely to have been entirely or partially written by AI (e.g., ChatGPT). Please be aware that [posting of AI-generated content is banned here](//meta.stackoverflow.com/q/421831). If you used an AI tool to assist with any answer, I would encourage you to delete it. – NotTheDr01ds Jun 11 '23 at 14:52
  • **Readers should review this answer carefully and critically, as AI-generated information often contains fundamental errors and misinformation.** If you observe quality issues and/or have reason to believe that this answer was generated by AI, please leave feedback accordingly. The moderation team can use your help to identify quality issues. – NotTheDr01ds Jun 11 '23 at 14:52
  • 1
    thank you very much. i didn't know that chat GPT is banned i will remove my answer – Mansouri Rayen Jun 11 '23 at 15:05
  • You have not removed this. You had better do so before you get into bigger trouble: we take plagiarism seriously here. – tchrist Jun 27 '23 at 03:12
  • no i understand odoo,the answer above is my modified answer – Mansouri Rayen Jul 01 '23 at 20:50