In ODOO community edition version 14.0 When trying installing HR module or any other module linked with the above e receive the following error:
Errore:
Odoo Server Error
Traceback (most recent call last):
File "/home/default/app/odoo14/odoo/tools/cache\.py",\ line\ 85,\ in\ lookup
\ \ \ \ r\ =\ d\[key\]
\ \ File\ "/home/default/app/odoo14/odoo/tools/func\.py",\ line\ 71,\ in\ wrapper
\ \ \ \ return\ func\(self,\ \*args,\ \*\*kwargs\)
\ \ File\ "/home/default/app/odoo14/odoo/tools/lru\.py",\ line\ 34,\ in\ __getitem__
\ \ \ \ a\ =\ self\.d\[obj\]
KeyError:\ \('ir\.model\.data',\ ,\ 'mail\.mail_activity_data_todo'\)
During\ handling\ of\ the\ above\ exception,\ another\ exception\ occurred:
Traceback\ \(most\ recent\ call\ last\):
\ \ File\ "/home/default/app/odoo14/odoo/tools/convert\.py",\ line\ 677,\ in\ _tag_root
\ \ \ \ f\(rec\)
\ \ File\ "/home/default/app/odoo14/odoo/tools/convert\.py",\ line\ 580,\ in\ _tag_record
\ \ \ \ record\ =\ model\._load_records\(\[data\],\ self\.mode\ ==\ 'update'\)
\ \ File\ "/home/default/app/odoo14/odoo/models\.py",\ line\ 4231,\ in\ _load_records
\ \ \ \ records\ =\ self\._load_records_create\(\[data\['values'\]\ for\ data\ in\ to_create\]\)
\ \ File\ "/home/default/app/odoo14/odoo/models\.py",\ line\ 4152,\ in\ _load_records_create
\ \ \ \ return\ self\.create\(values\)
\ \ File\ "",\ line\ 2,\ in\ create
\ \ File\ "/home/default/app/odoo14/odoo/api\.py",\ line\ 348,\ in\ _model_create_multi
\ \ \ \ return\ create\(self,\ arg\)
\ \ File\ "/home/default/app/odoo14/odoo/addons/base/models/ir_fields\.py",\ line\ 534,\ in\ create
\ \ \ \ recs\ =\ super\(\)\.create\(vals_list\)
\ \ File\ "",\ line\ 2,\ in\ create
\ \ File\ "/home/default/app/odoo14/odoo/api\.py",\ line\ 348,\ in\ _model_create_multi
\ \ \ \ return\ create\(self,\ arg\)
\ \ File\ "/home/default/app/odoo14/odoo/models\.py",\ line\ 3820,\ in\ create
\ \ \ \ vals\ =\ self\._add_missing_default_values\(vals\)
\ \ File\ "/home/default/app/odoo14/odoo/models\.py",\ line\ 1854,\ in\ _add_missing_default_values
\ \ \ \ defaults\ =\ self\.default_get\(list\(missing_defaults\)\)
\ \ File\ "/home/default/app/odoo14/odoo/models\.py",\ line\ 1309,\ in\ default_get
\ \ \ \ defaults\[name\]\ =\ field\.default\(self\)
\ \ File\ "/home/default/app/odoo14/addons/hr/models/hr_plan\.py",\ line\ 15,\ in\
\ \ \ \ default=lambda\ self:\ self\.env\.ref\('mail\.mail_activity_data_todo'\),
\ \ File\ "/home/default/app/odoo14/odoo/api\.py",\ line\ 514,\ in\ ref
\ \ \ \ return\ self\['ir\.model\.data'\]\.xmlid_to_object\(xml_id,\ raise_if_not_found=raise_if_not_found\)
\ \ File\ "/home/default/app/odoo14/odoo/addons/base/models/ir_model\.py",\ line\ 1944,\ in\ xmlid_to_object
\ \ \ \ t\ =\ self\.xmlid_to_res_model_res_id\(xmlid,\ raise_if_not_found\)
\ \ File\ "/home/default/app/odoo14/odoo/addons/base/models/ir_model\.py",\ line\ 1928,\ in\ xmlid_to_res_model_res_id
\ \ \ \ return\ self\.xmlid_lookup\(xmlid\)\[1:3\]
\ \ File\ "",\ line\ 2,\ in\ xmlid_lookup
\ \ File\ "/home/default/app/odoo14/odoo/tools/cache\.py",\ line\ 90,\ in\ lookup
\ \ \ \ value\ =\ d\[key\]\ =\ self\.method\(\*args,\ \*\*kwargs\)
\ \ File\ "/home/default/app/odoo14/odoo/addons/base/models/ir_model\.py",\ line\ 1921,\ in\ xmlid_lookup
\ \ \ \ raise\ ValueError\('External\ ID\ not\ found\ in\ the\ system:\ %s'\ %\ xmlid\)
ValueError:\ External\ ID\ not\ found\ in\ the\ system:\ mail\.mail_activity_data_todo
The\ above\ exception\ was\ the\ direct\ cause\ of\ the\ following\ exception:
Traceback\ \(most\ recent\ call\ last\):
\ \ File\ "/home/default/app/odoo14/odoo/addons/base/models/ir_http\.py",\ line\ 237,\ in\ _dispatch
\ \ \ \ result\ =\ request\.dispatch\(\)
\ \ File\ "/home/default/app/odoo14/odoo/http\.py",\ line\ 683,\ in\ dispatch
\ \ \ \ result\ =\ self\._call_function\(\*\*self\.params\)
\ \ File\ "/home/default/app/odoo14/odoo/http\.py",\ line\ 359,\ in\ _call_function
\ \ \ \ return\ checked_call\(self\.db,\ \*args,\ \*\*kwargs\)
\ \ File\ "/home/default/app/odoo14/odoo/service/model\.py",\ line\ 94,\ in\ wrapper
\ \ \ \ return\ f\(dbname,\ \*args,\ \*\*kwargs\)
\ \ File\ "/home/default/app/odoo14/odoo/http\.py",\ line\ 347,\ in\ checked_call
\ \ \ \ result\ =\ self\.endpoint\(\*a,\ \*\*kw\)
\ \ File\ "/home/default/app/odoo14/odoo/http\.py",\ line\ 912,\ in\ __call__
\ \ \ \ return\ self\.method\(\*args,\ \*\*kw\)
\ \ File\ "/home/default/app/odoo14/odoo/http\.py",\ line\ 531,\ in\ response_wrap
\ \ \ \ response\ =\ f\(\*args,\ \*\*kw\)
\ \ File\ "/home/default/app/odoo14/addons/web/controllers/main\.py",\ line\ 1398,\ in\ call_button
\ \ \ \ action\ =\ self\._call_kw\(model,\ method,\ args,\ kwargs\)
\ \ File\ "/home/default/app/odoo14/addons/web/controllers/main\.py",\ line\ 1386,\ in\ _call_kw
\ \ \ \ return\ call_kw\(request\.env\[model\],\ method,\ args,\ kwargs\)
\ \ File\ "/home/default/app/odoo14/odoo/api\.py",\ line\ 399,\ in\ call_kw
\ \ \ \ result\ =\ _call_kw_multi\(method,\ model,\ args,\ kwargs\)
\ \ File\ "/home/default/app/odoo14/odoo/api\.py",\ line\ 386,\ in\ _call_kw_multi
\ \ \ \ result\ =\ method\(recs,\ \*args,\ \*\*kwargs\)
\ \ File\ "",\ line\ 2,\ in\ button_immediate_install
\ \ File\ "/home/default/app/odoo14/odoo/addons/base/models/ir_module\.py",\ line\ 74,\ in\ check_and_log
\ \ \ \ return\ method\(self,\ \*args,\ \*\*kwargs\)
\ \ File\ "/home/default/app/odoo14/odoo/addons/base/models/ir_module\.py",\ line\ 475,\ in\ button_immediate_install
\ \ \ \ return\ self\._button_immediate_function\(type\(self\)\.button_install\)
\ \ File\ "/home/default/app/odoo14/odoo/addons/base/models/ir_module\.py",\ line\ 593,\ in\ _button_immediate_function
\ \ \ \ modules\.registry\.Registry\.new\(self\._cr\.dbname,\ update_module=True\)
\ \ File\ "/home/default/app/odoo14/odoo/modules/registry\.py",\ line\ 89,\ in\ new
\ \ \ \ odoo\.modules\.load_modules\(registry\._db,\ force_demo,\ status,\ update_module\)
\ \ File\ "/home/default/app/odoo14/odoo/modules/loading\.py",\ line\ 461,\ in\ load_modules
\ \ \ \ loaded_modules,\ update_module,\ models_to_check\)
\ \ File\ "/home/default/app/odoo14/odoo/modules/loading\.py",\ line\ 349,\ in\ load_marked_modules
\ \ \ \ perform_checks=perform_checks,\ models_to_check=models_to_check
\ \ File\ "/home/default/app/odoo14/odoo/modules/loading\.py",\ line\ 222,\ in\ load_module_graph
\ \ \ \ load_data\(cr,\ idref,\ mode,\ kind='data',\ package=package\)
\ \ File\ "/home/default/app/odoo14/odoo/modules/loading\.py",\ line\ 69,\ in\ load_data
\ \ \ \ tools\.convert_file\(cr,\ package\.name,\ filename,\ idref,\ mode,\ noupdate,\ kind\)
\ \ File\ "/home/default/app/odoo14/odoo/tools/convert\.py",\ line\ 733,\ in\ convert_file
\ \ \ \ convert_xml_import\(cr,\ module,\ fp,\ idref,\ mode,\ noupdate\)
\ \ File\ "/home/default/app/odoo14/odoo/tools/convert\.py",\ line\ 799,\ in\ convert_xml_import
\ \ \ \ obj\.parse\(doc\.getroot\(\)\)
\ \ File\ "/home/default/app/odoo14/odoo/tools/convert\.py",\ line\ 719,\ in\ parse
\ \ \ \ self\._tag_root\(de\)
\ \ File\ "/home/default/app/odoo14/odoo/tools/convert\.py",\ line\ 677,\ in\ _tag_root
\ \ \ \ f\(rec\)
\ \ File\ "/home/default/app/odoo14/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\ "/home/default/app/odoo14/odoo/http\.py",\ line\ 639,\ in\ _handle_exception
\ \ \ \ return\ super\(JsonRequest,\ self\)\._handle_exception\(exception\)
\ \ File\ "/home/default/app/odoo14/odoo/http\.py",\ line\ 315,\ in\ _handle_exception
\ \ \ \ raise\ exception\.with_traceback\(None\)\ from\ new_cause
odoo\.tools\.convert\.ParseError:\ while\ parsing\ /home/default/app/odoo14/addons/hr/data/hr_data\.xml:29,\ near
" rel="ugc">hr.plan.activity.type">
Setup IT Materials
manager
Anyone who knows what to do?
Is it resolved ?