Hey Community!
I hope you are all well.
I'm having trouble installing an addon for the Helpdesk module.
When I installed another addon for Contacts, I had no trouble at all. What am I doing wrong?
The error code:
Error: Odoo Server Error Traceback (most recent call last): File "/usr/lib/python3/dist-packages/odoo/tools/cache.py", line 85, in lookup r = d[key] File "/usr/lib/python3/dist-packages/odoo/tools/func.py", line 69, in wrapper return func(self, *args, **kwargs) File "/usr/lib/python3/dist-packages/odoo/tools/lru.py", line 44, in __getitem__ a = self.d[obj].me KeyError: ('ir.model.data', <function IrModelData.xmlid_lookup at 0x7fa8277cf670>, 'helpdesk.helpdesk_tickets_view_form') During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 712, in parse self._tag_root(de) File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 674, in _tag_root f(rec) File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 561, in _tag_record f_val = self.id_get(f_ref) File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 657, in id_get res = self.model_id_get(id_str, raise_if_not_found) File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 663, 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 "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_model.py", line 1681, in xmlid_to_res_model_res_id return self.xmlid_lookup(xmlid)[1:3] File "<decorator-gen-25>", line 2, in xmlid_lookup File "/usr/lib/python3/dist-packages/odoo/tools/cache.py", line 90, in lookup value = d[key] = self.method(*args, **kwargs) File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_model.py", line 1670, in xmlid_lookup raise ValueError('External ID not found in the system: %s' % xmlid) ValueError: External ID not found in the system: helpdesk.helpdesk_tickets_view_form During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/odoo/http.py", line 624, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/usr/lib/python3/dist-packages/odoo/http.py", line 310, in _handle_exception raise pycompat.reraise(type(exception), exception, sys.exc_info()[2]) File "/usr/lib/python3/dist-packages/odoo/tools/pycompat.py", line 14, in reraise raise value File "/usr/lib/python3/dist-packages/odoo/http.py", line 669, in dispatch result = self._call_function(**self.params) File "/usr/lib/python3/dist-packages/odoo/http.py", line 350, in _call_function return checked_call(self.db, *args, **kwargs) File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 94, in wrapper return f(dbname, *args, **kwargs) File "/usr/lib/python3/dist-packages/odoo/http.py", line 339, in checked_call result = self.endpoint(*a, **kw) File "/usr/lib/python3/dist-packages/odoo/http.py", line 915, in __call__ return self.method(*args, **kw) File "/usr/lib/python3/dist-packages/odoo/http.py", line 515, in response_wrap response = f(*args, **kw) File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 1326, in call_button action = self._call_kw(model, method, args, kwargs) File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 1314, in _call_kw return call_kw(request.env[model], method, args, kwargs) File "/usr/lib/python3/dist-packages/odoo/api.py", line 387, in call_kw result = _call_kw_multi(method, model, args, kwargs) File "/usr/lib/python3/dist-packages/odoo/api.py", line 374, in _call_kw_multi result = method(recs, *args, **kwargs) File "<decorator-gen-66>", line 2, in button_immediate_upgrade File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 72, in check_and_log return method(self, *args, **kwargs) File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 634, in button_immediate_upgrade return self._button_immediate_function(type(self).button_upgrade) File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 573, in _button_immediate_function modules.registry.Registry.new(self._cr.dbname, update_module=True) File "/usr/lib/python3/dist-packages/odoo/modules/registry.py", line 86, in new odoo.modules.load_modules(registry._db, force_demo, status, update_module) File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 417, in load_modules processed_modules += load_marked_modules(cr, graph, File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 313, in load_marked_modules loaded, processed = load_module_graph( File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 225, in load_module_graph load_data(cr, idref, mode, kind='data', package=package, report=report) File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 68, in load_data tools.convert_file(cr, package.name, filename, idref, mode, noupdate, kind, report) File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 736, in convert_file convert_xml_import(cr, module, fp, idref, mode, noupdate, report) File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 803, in convert_xml_import obj.parse(doc.getroot()) File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 715, in parse pycompat.reraise( File "/usr/lib/python3/dist-packages/odoo/tools/pycompat.py", line 13, in reraise raise value.with_traceback(tb) File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 712, in parse self._tag_root(de) File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 674, in _tag_root f(rec) File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 561, in _tag_record f_val = self.id_get(f_ref) File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 657, in id_get res = self.model_id_get(id_str, raise_if_not_found) File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 663, 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 "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_model.py", line 1681, in xmlid_to_res_model_res_id return self.xmlid_lookup(xmlid)[1:3] File "<decorator-gen-25>", line 2, in xmlid_lookup File "/usr/lib/python3/dist-packages/odoo/tools/cache.py", line 90, in lookup value = d[key] = self.method(*args, **kwargs) File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_model.py", line 1670, in xmlid_lookup raise ValueError('External ID not found in the system: %s' % xmlid) odoo.tools.convert.ParseError: "External ID not found in the system: helpdesk.helpdesk_tickets_view_form" while parsing /opt/odoo_custom_addons/helpdesk_addon/views/helpdesk_addon.xml:3, near <odoo> <!-- Helpdesk Addon Form View --> <record id="helpdesk_addon_form_view" model="ir.ui.view"> <field name="name">view.helpdesk.addon.form</field> <field name="model">helpdesk.ticket</field> <field name="inherit_id" ref="helpdesk.helpdesk_tickets_view_form"/> <field name="arch" type="xml"> <field name="partner_id" position="before"> <field name="test_field"/> </field> </field> </record> <!-- Helpdesk Addon Tree View --> <record id="helpdesk_addon_tree_view" model="ir.ui.view"> <field name="name">view.helpdesk.addon.tree</field> <field name="model">helpdesk.ticket</field> <field name="inherit_id" ref="helpdesk.helpdesk_tickets_view_tree"/> <field name="arch" type="xml"> <field name="partner_id" position="before"> <field name="test_field"/> </field> </field> </record> <!-- Helpdesk Addon Search View --> <record id="helpdesk_addon_search_view" model="ir.ui.view"> <field name="name">view.helpdesk.addon.search</field> <field name="model"/> <field name="arch" type="xml"> <search/> </field> </record> <!-- Helpdesk Addon Action --> <record id="helpdesk_addon_view_action" model="ir.actions.act_window"> <field name="name">Helpdesk Addon</field> <field name="res_model"/> <field name="type">ir.actions.act_window</field> <field name="view_mode">tree,form</field> <field name="help" type="html"> <p class="oe_view_nonecontent_create"> Create a ... </p> <p> ... </p> </field> </record> </odoo>
My Code:
<?xml version="1.0" encoding="utf-8"?> <odoo> <!-- Helpdesk Addon Form View --> <record id="helpdesk_addon_form_view" model="ir.ui.view"> <field name="name">view.helpdesk.addon.form</field> <field name="model">helpdesk.ticket</field> <field name="inherit_id" ref="helpdesk.helpdesk_tickets_view_form"/> <field name="arch" type="xml"> <field name="partner_id" position="before"> <field name="test_field"/> </field> </field> </record> <!-- Helpdesk Addon Tree View --> <record id="helpdesk_addon_tree_view" model="ir.ui.view"> <field name="name">view.helpdesk.addon.tree</field> <field name="model">helpdesk.ticket</field> <field name="inherit_id" ref="helpdesk.helpdesk_tickets_view_tree"/> <field name="arch" type="xml"> <field name="partner_id" position="before"> <field name="test_field"/> </field> </field> </record>
</odoo>
Greetings from Dortmund.
Hello,
Have you added the helpdesk to the dependencies (depends field) in the manifest?
https://www.odoo.com/documentation/13.0/reference/module.html#
Thanks,