Overslaan naar inhoud
Odoo Menu
  • Aanmelden
  • Probeer het gratis
  • Apps
    Financiën
    • Boekhouding
    • Facturatie
    • Onkosten
    • Spreadsheet (BI)
    • Documenten
    • Ondertekenen
    Verkoop
    • CRM
    • Verkoop
    • Kassasysteem winkel
    • Kassasysteem Restaurant
    • Abonnementen
    • Verhuur
    Websites
    • Websitebouwer
    • E-commerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Bevoorradingsketen
    • Voorraad
    • Productie
    • PLM
    • Inkoop
    • Onderhoud
    • Kwaliteit
    Personeelsbeheer
    • Werknemers
    • Werving & Selectie
    • Verlof
    • Evaluaties
    • Aanbevelingen
    • Wagenpark
    Marketing
    • Social media Marketing
    • E-mailmarketing
    • SMS Marketing
    • Evenementen
    • Marketingautomatisering
    • Enquêtes
    Diensten
    • Project
    • Urenstaten
    • Buitendienst
    • Helpdesk
    • Planning
    • Afspraken
    Productiviteit
    • Chat
    • Goedkeuringen
    • IoT
    • VoIP
    • Kennis
    • WhatsApp
    Apps van derden Odoo Studio Odoo Cloud Platform
  • Bedrijfstakken
    Detailhandel
    • Boekhandel
    • kledingwinkel
    • Meubelzaak
    • Supermarkt
    • Bouwmarkt
    • Speelgoedwinkel
    Food & Hospitality
    • Bar en Pub
    • Restaurant
    • Fastfood
    • Gastenverblijf
    • Drankenhandelaar
    • Hotel
    Vastgoed
    • Makelaarskantoor
    • Architectenbureau
    • Bouw
    • Vastgoedbeheer
    • Tuinieren
    • Vereniging van eigenaren
    Consulting
    • Accountantskantoor
    • Odoo Partner
    • Marketingbureau
    • Advocatenkantoor
    • Talentenwerving
    • Audit & Certificering
    Productie
    • Textiel
    • Metaal
    • Meubels
    • Eten
    • Brewery
    • Relatiegeschenken
    Gezondheid & Fitness
    • Sportclub
    • Opticien
    • Fitnesscentrum
    • Wellness-medewerkers
    • Apotheek
    • Kapper
    Trades
    • Klusjesman
    • IT-hardware & support
    • Zonne-energiesystemen
    • Schoenmaker
    • Schoonmaakdiensten
    • HVAC-diensten
    Andere
    • Non-profitorganisatie
    • Milieuagentschap
    • Verhuur van Billboards
    • Fotograaf
    • Fietsleasing
    • Softwareverkoper
    Browse all Industries
  • Community
    Leren
    • Tutorials
    • Documentatie
    • Certificeringen
    • Training
    • Blog
    • Podcast
    Versterk het onderwijs
    • Onderwijs- programma
    • Scale Up! Business Game
    • Bezoek Odoo
    Download de Software
    • Downloaden
    • Vergelijk edities
    • Releases
    Werk samen
    • Github
    • Forum
    • Evenementen
    • Vertalingen
    • Word een Partner
    • Services for Partners
    • Registreer je accountantskantoor
    Diensten
    • Vind een partner
    • Vind een boekhouder
    • Een adviseur ontmoeten
    • Implementatiediensten
    • Klantreferenties
    • Ondersteuning
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Vraag een demo aan
  • Prijzen
  • Help

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Boekhouding
  • Voorraad
  • PoS
  • Project
  • MRP
All apps
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Help

Error in odoo17

Inschrijven

Ontvang een bericht wanneer er activiteit is op deze post

Deze vraag is gerapporteerd
4 Antwoorden
10410 Weergaven
Avatar
Cruz
I want immediate help to solve it.

Traceback (most recent call last): File "/opt/odoo17/odoo/odoo/tools/cache.py", line 99, in lookup r = d[key] File "", line 2, in __getitem__ File "/opt/odoo17/odoo/odoo/tools/func.py", line 87, in locked return func(inst, *args, **kwargs) File "/opt/odoo17/odoo/odoo/tools/lru.py", line 34, in __getitem__ a = self.d[obj] KeyError: ('ir.model.data', , 'gb_custom_hr.action_report_employment') During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/opt/odoo17/odoo/odoo/tools/convert.py", line 556, in _tag_root f(rec) File "/opt/odoo17/odoo/odoo/tools/convert.py", line 312, in _tag_menuitem act = self.env.ref(a_action).sudo() File "/opt/odoo17/odoo/odoo/api.py", line 572, in ref res_model, res_id = self['ir.model.data']._xmlid_to_res_model_res_id( File "/opt/odoo17/odoo/odoo/addons/base/models/ir_model.py", line 2182, in _xmlid_to_res_model_res_id return self._xmlid_lookup(xmlid) File "", line 2, in _xmlid_lookup File "/opt/odoo17/odoo/odoo/tools/cache.py", line 104, in lookup value = d[key] = self.method(*args, **kwargs) File "/opt/odoo17/odoo/odoo/addons/base/models/ir_model.py", line 2175, in _xmlid_lookup raise ValueError('External ID not found in the system: %s' % xmlid) ValueError: External ID not found in the system: gb_custom_hr.action_report_employment The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/opt/odoo17/odoo/odoo/http.py", line 1722, in _serve_db return service_model.retrying(self._serve_ir_http, self.env) File "/opt/odoo17/odoo/odoo/service/model.py", line 133, in retrying result = func() File "/opt/odoo17/odoo/odoo/http.py", line 1749, in _serve_ir_http response = self.dispatcher.dispatch(rule.endpoint, args) File "/opt/odoo17/odoo/odoo/http.py", line 1953, in dispatch result = self.request.registry['ir.http']._dispatch(endpoint) File "/opt/odoo17/odoo/addons/website/models/ir_http.py", line 235, in _dispatch response = super()._dispatch(endpoint) File "/opt/odoo17/odoo/odoo/addons/base/models/ir_http.py", line 222, in _dispatch result = endpoint(**request.params) File "/opt/odoo17/odoo/odoo/http.py", line 722, in route_wrapper result = endpoint(self, *args, **params_ok) File "/opt/odoo17/odoo/addons/web/controllers/dataset.py", line 28, in call_button action = self._call_kw(model, method, args, kwargs) File "/opt/odoo17/odoo/addons/web/controllers/dataset.py", line 20, in _call_kw return call_kw(request.env[model], method, args, kwargs) File "/opt/odoo17/odoo/odoo/api.py", line 466, in call_kw result = _call_kw_multi(method, model, args, kwargs) File "/opt/odoo17/odoo/odoo/api.py", line 453, in _call_kw_multi result = method(recs, *args, **kwargs) File "", line 2, in button_immediate_upgrade File "/opt/odoo17/odoo/odoo/addons/base/models/ir_module.py", line 75, in check_and_log return method(self, *args, **kwargs) File "/opt/odoo17/odoo/odoo/addons/base/models/ir_module.py", line 650, in button_immediate_upgrade return self._button_immediate_function(type(self).button_upgrade) File "/opt/odoo17/odoo/odoo/addons/base/models/ir_module.py", line 583, in _button_immediate_function registry = modules.registry.Registry.new(self._cr.dbname, update_module=True) File "", line 2, in new File "/opt/odoo17/odoo/odoo/tools/func.py", line 87, in locked return func(inst, *args, **kwargs) File "/opt/odoo17/odoo/odoo/modules/registry.py", line 113, in new odoo.modules.load_modules(registry, force_demo, status, update_module) File "/opt/odoo17/odoo/odoo/modules/loading.py", line 476, in load_modules processed_modules += load_marked_modules(env, graph, File "/opt/odoo17/odoo/odoo/modules/loading.py", line 364, in load_marked_modules loaded, processed = load_module_graph( File "/opt/odoo17/odoo/odoo/modules/loading.py", line 227, in load_module_graph load_data(env, idref, mode, kind='data', package=package) File "/opt/odoo17/odoo/odoo/modules/loading.py", line 71, in load_data tools.convert_file(env, package.name, filename, idref, mode, noupdate, kind) File "/opt/odoo17/odoo/odoo/tools/convert.py", line 627, in convert_file convert_xml_import(env, module, fp, idref, mode, noupdate) File "/opt/odoo17/odoo/odoo/tools/convert.py", line 693, in convert_xml_import obj.parse(doc.getroot()) File "/opt/odoo17/odoo/odoo/tools/convert.py", line 613, in parse self._tag_root(de) File "/opt/odoo17/odoo/odoo/tools/convert.py", line 556, in _tag_root f(rec) File "/opt/odoo17/odoo/odoo/tools/convert.py", line 569, in _tag_root raise ParseError('while parsing %s:%s, somewhere inside\n%s' % ( odoo.tools.convert.ParseError: while parsing /opt/odoo17/odoo/addons/gb_custom_hr/views/menu.xml:5, somewhere inside

i was adding the wizard in employee module using my custom module. Now, i got stuck with this error. Anyone please helps me out.

0
Avatar
Annuleer
Avatar
Lex
Beste antwoord

Hello,

Unfortunately, I cannot directly access and check your Odoo code. 

However, I can guide you on how to verify the order of declarations in the manifest file and ensure the menu view is placed last.

Look for the following declarations in the manifest file:

  • 'qweb': [ ... ], (Defines QWeb views)
  • 'actions': [ ... ], (Defines actions)
  • 'menu': [ ... ], (Defines menu items)

Hope it helps

 



1
Avatar
Annuleer
Cruz
Auteur

Is it necessary to have these 3 declarations in __manifest__.py file.

Cruz
Auteur

'data':[
'security/ir.model.access.csv',
'views/hr_employee_views.xml',
'views/hr_employee_history_views.xml',
'views/hr_employee_report_views.xml',
'report/ir_actions_report.xml',
'report/employee_report.xml',
'wizard/employee_details_report_view.xml',
'views/menu.xml',
],
Is this correct

Cruz
Auteur

It's get resolved, after the data in __manifest__.py get changed as above.

But new error is formed:
Traceback (most recent call last):
File "/opt/odoo17/odoo/odoo/http.py", line 1722, in _serve_db
return service_model.retrying(self._serve_ir_http, self.env)
File "/opt/odoo17/odoo/odoo/service/model.py", line 133, in retrying
result = func()
File "/opt/odoo17/odoo/odoo/http.py", line 1749, in _serve_ir_http
response = self.dispatcher.dispatch(rule.endpoint, args)
File "/opt/odoo17/odoo/odoo/http.py", line 1953, in dispatch
result = self.request.registry['ir.http']._dispatch(endpoint)
File "/opt/odoo17/odoo/addons/website/models/ir_http.py", line 235, in _dispatch
response = super()._dispatch(endpoint)
File "/opt/odoo17/odoo/odoo/addons/base/models/ir_http.py", line 222, in _dispatch
result = endpoint(**request.params)
File "/opt/odoo17/odoo/odoo/http.py", line 722, in route_wrapper
result = endpoint(self, *args, **params_ok)
File "/opt/odoo17/odoo/addons/web/controllers/dataset.py", line 28, in call_button
action = self._call_kw(model, method, args, kwargs)
File "/opt/odoo17/odoo/addons/web/controllers/dataset.py", line 20, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/opt/odoo17/odoo/odoo/api.py", line 466, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "/opt/odoo17/odoo/odoo/api.py", line 453, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "<decorator-gen-83>", line 2, in button_immediate_upgrade
File "/opt/odoo17/odoo/odoo/addons/base/models/ir_module.py", line 75, in check_and_log
return method(self, *args, **kwargs)
File "/opt/odoo17/odoo/odoo/addons/base/models/ir_module.py", line 650, in button_immediate_upgrade
return self._button_immediate_function(type(self).button_upgrade)
File "/opt/odoo17/odoo/odoo/addons/base/models/ir_module.py", line 583, in _button_immediate_function
registry = modules.registry.Registry.new(self._cr.dbname, update_module=True)
File "<decorator-gen-16>", line 2, in new
File "/opt/odoo17/odoo/odoo/tools/func.py", line 87, in locked
return func(inst, *args, **kwargs)
File "/opt/odoo17/odoo/odoo/modules/registry.py", line 113, in new
odoo.modules.load_modules(registry, force_demo, status, update_module)
File "/opt/odoo17/odoo/odoo/modules/loading.py", line 476, in load_modules
processed_modules += load_marked_modules(env, graph,
File "/opt/odoo17/odoo/odoo/modules/loading.py", line 364, in load_marked_modules
loaded, processed = load_module_graph(
File "/opt/odoo17/odoo/odoo/modules/loading.py", line 227, in load_module_graph
load_data(env, idref, mode, kind='data', package=package)
File "/opt/odoo17/odoo/odoo/modules/loading.py", line 71, in load_data
tools.convert_file(env, package.name, filename, idref, mode, noupdate, kind)
File "/opt/odoo17/odoo/odoo/tools/convert.py", line 627, in convert_file
convert_xml_import(env, module, fp, idref, mode, noupdate)
File "/opt/odoo17/odoo/odoo/tools/convert.py", line 693, in convert_xml_import
obj.parse(doc.getroot())
File "/opt/odoo17/odoo/odoo/tools/convert.py", line 613, in parse
self._tag_root(de)
File "/opt/odoo17/odoo/odoo/tools/convert.py", line 567, in _tag_root
raise ParseError(msg) from None # Restart with "--log-handler odoo.tools.convert:DEBUG" for complete traceback
odoo.tools.convert.ParseError: while parsing /opt/odoo17/odoo/addons/gb_custom_hr/wizard/employee_details_report_view.xml:3
Error while validating view near:

<footer>
<button name="action_print_report" type="object" string="Print" class="btn-primary"/>
<button string="Cancel" class="btn-secondary" special="cancel"/>
</footer>
</form>
action_print_report is not a valid action on employee.details.report.wizard

View error context:
{'file': '/opt/odoo17/odoo/addons/gb_custom_hr/wizard/employee_details_report_view.xml',
'line': 13,
'name': 'employee.report.wizard.form',
'view': ir.ui.view(2714,),
'view.model': 'employee.details.report.wizard',
'view.parent': ir.ui.view(),
'xmlid': 'view_report_employee_form'}

Dương Nguyễn

Probably the method 'action_print_report' is not present in the wizard python file, please check again sir

Cruz
Auteur

Yes, that was the issue. Thank you

Dương Nguyễn

wait sir, i'm the one the help you in the first place and point out the last issue, please mark my answer as best answer not this one

Avatar
Cybrosys Techno Solutions Pvt.Ltd
Beste antwoord

Hi,

The error message "External ID not found in the system" typically occurs when Odoo is unable to locate the specified external identifier (XML ID) in its database.

In your case, the XML ID gb_custom_hr.action_report_employment is not found in the system. This could happen for several reasons:

1)Double-check the XML ID to ensure that it is spelled correctly and matches the actual ID used in your code or configuration.

2)Verify that the XML ID is correctly defined in your code or data files. It should be defined either in a view, a menu item, an action, or any other relevant place.

3)If this XML ID is defined in a module, ensure that the module containing the XML ID is installed and properly loaded in your Odoo instance.

4)Ensure that you are referencing the XML ID within the correct scope. For example, if the XML ID belongs to a specific module, make sure you are referencing it within that module's context.

5) Make sure you have given the  XML id in the manifest before it is referenced or used in a different place.


Hope it helps

0
Avatar
Annuleer
Avatar
Niyas Raphy (Walnut Software Solutions)
Beste antwoord

Hi,

Check for the usage of action_report_employment in your module and make sure this record will load into the db before it is referenced or used in a different place.

For example, if you have a menu linked with action, the action declaration should come first and then the menu definition

If you are new to odoo development, see:  Odoo  Development Tutorials

Thanks

0
Avatar
Annuleer
Cruz
Auteur

I just added the action in wizard and menu item in views.

Niyas Raphy (Walnut Software Solutions)

does it solved?

Cruz
Auteur

No, still on it

Avatar
Dương Nguyễn
Beste antwoord

This error happens when you have malfunction xml file and in this case that xml file belong to the module 'gb_custom_hr' and the file name is 'menu.xml' . In order to help, i need you to provide the xml file or the whole addons 'gb_custom_hr' sir. I'll trouble shot for you.

0
Avatar
Annuleer
Cruz
Auteur

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<menuitem id="menu_employee_reporter" name="Reports" parent="hr.menu_hr_root" sequence="1"/>
<menuitem id="menu_employee_reporting" name="Reports" action="action_report_employment" parent="menu_employee_reporter" sequence="1"/>
</data>
</odoo>

Cruz
Auteur

The provided code is menu.xml in views.

Dương Nguyễn

Oh i know where, the error said the xml id 'action_report_employment' has not been found anywhere inside the module 'gb_custom_hr' . Can you search the name 'action_report_employment' in the module or if you need quicik resolve, just give the module via email daiduongnguyen2709@gmail.com sir

Cruz
Auteur

This xml id 'action_report_employment' exists in my wizard

Cruz
Auteur

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="view_report_employee_form" model="ir.ui.view">
<field name="name">employee.report.wizard.form</field>
<field name="model">employee.details.report.wizard</field>
<field name="arch" type="xml">
<form string="Print Details">
<group>
<group>
<field name="name"/>
</group>
<group>
<field name="date_from"/>
<field name="date_to"/>
</group>
</group>
<footer>
<button name="action_print_report" type="object" string="Print" class="btn-primary"/>
<button string="Cancel" class="btn-secondary" special="cancel"/>
</footer>
</form>
</field>
</record>
<record id="action_report_employment" model="ir.actions.act.window">
<field name="name">Employee Details</field>
<field name="type">ir.actions.act.window</field>
<field name="res_model">employee.details.report.wizard</field>
<field name="view_mode">form</field>
<field name="view_id" ref="view_report_employee_form"/>
<field name="target">new</field>
</record>
</odoo>

Dương Nguyễn

Ok good, so does it load in manifest ?
it should be something like this in your manifest:
'data': [
'wizard/your wizard xml here',
'views/menu.xml',
],
note because the action is in the wizard xml so it need to load first

Cruz
Auteur

Yes, I just added those in __manifest__.py

Dương Nguyễn

So dose it solved, try upgrade the module

Cruz
Auteur

No, still the same issue

Dương Nguyễn

You mark the wrong best answer

Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!

Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!

Aanmelden
Community
  • Tutorials
  • Documentatie
  • Forum
Open Source
  • Downloaden
  • Github
  • Runbot
  • Vertalingen
Diensten
  • Odoo.sh Hosting
  • Ondersteuning
  • Upgrade
  • Gepersonaliseerde ontwikkelingen
  • Onderwijs
  • Vind een boekhouder
  • Vind een partner
  • Word een Partner
Over ons
  • Ons bedrijf
  • Merkelementen
  • Neem contact met ons op
  • Vacatures
  • Evenementen
  • Podcast
  • Blog
  • Klanten
  • Juridisch • Privacy
  • Beveiliging
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo is een suite van open source zakelijke apps die aan al je bedrijfsbehoeften voldoet: CRM, E-commerce, boekhouding, inventaris, kassasysteem, projectbeheer, enz.

Odoo's unieke waardepropositie is om tegelijkertijd zeer gebruiksvriendelijk en volledig geïntegreerd te zijn.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now