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

odoo 16-"odoo.tools.convert.ParseError: while parsing file:<filename>/something.xml line :23, somewhere inside"-struggling what is the error exactly

Inschrijven

Ontvang een bericht wanneer er activiteit is op deze post

Deze vraag is gerapporteerd
viewsxmlformviewParseErrorodoo16features
1 Beantwoorden
22668 Weergaven
Avatar
Vivaan Shiromani

Everything was running fine, but when I choose a new database and try to install/activate the module again this error was coming, prior it was working fine when I changed some views of different models.

This is the code where parse error is :

Its a form view with chatter.


 <record id="office_employee_view_form" model="ir.ui.view">
        <field name="name">office.employee.view.formfield>
        <field name="model">office.employeefield>
        <field name="arch" type="xml">

            <form string="Office_Employee_Form_View">

                <sheet>
                    <group>
                        <group>
                            <field
                name="name"
                help="Name of the employee"
                icon="fa-solid fa-user"
              />
                            <field
                name="age"
                icon="fa-solid fa-input-numeric"
              />
                            <field
                name="b_date"
                icon="fa-solid fa-cake-candles"
              />
                        group>
                        <group>
                            <field
                name="department"
                icon="fa-solid fa-briefcase"
              />
                            <field
                name="gender"
                icon="fa-duotone fa-person-half-dress"
              />
                        
                            <button
                string="Female Employee"
                name="%(employee.office_employee_female_action)d"
                confirm="Are u sure want to view female employee ?"
                help="By clicking this button you will see female employee"
                type="action"
                class="oe_highlight"
              />
                            <button
                string="Male Employee"
                name="%(employee.office_employee_male_action)d"
                type="action"
                class="oe_highlight"
              />
                            
                            <field name="active" invisible="true" />
                        group>
                    group>

                    <notebook>
                        <page
              name="employee_work_info_company"
              string="Company Information"
            >
                            <field name="employee_more_details">
                                <tree
                  editable="bottom"
                  widget='section_and_note_one2many'
                >
                                    <control>
                                        <create string='Add more detail' />
                                    control>
                                    <field
                    name="company_name"
                    icon="fa-solid fa-buildings"
                  />
                                    <field
                    name="work_location"
                    icon="fa-solid fa-location-dot"
                  />
                                    <field
                    name="work_phone"
                    icon="fa-solid fa-phone-volume"
                  />
                                    <field
                    name="work_email"
                    icon="fa-solid fa-envelope"
                  />
                                tree>

                                

                            field>
                        page>

                        <page name="emp_hobby" string="Employee Hobby">
                            <form>
                                <group>
                                    <field
                    name="emp_hobby"
                    widget="many2many_tags"
                    icon="fa-solid fa-teddy-bear"
                  />
                                group>
                            form>

                        page>

                    notebook>
                sheet>

                <div class="oe_chatter">
                    <field
            name="message_follower_ids"
            widget="mail_followers"
          />
                    <field name="activity_ids" widget="mail_activity" />
                    <field name="message_ids" widget="mail_thread" />
                div>

            form>
        field>
    record>

Error Log: 


RPC_ERROR
Odoo Server Error
Traceback (most recent call last):
File "V:\Odoo\server\odoo\tools\cache.py", line 85, in lookup
r = d[key]
File "", line 2, in __getitem__
File "V:\Odoo\server\odoo\tools\func.py", line 87, in locked
return func(inst, *args, **kwargs)
File "V:\Odoo\server\odoo\tools\lru.py", line 34, in __getitem__
a = self.d[obj]
KeyError: ('ir.model.data', , 'employee.office_employee_female_action')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "V:\Odoo\server\odoo\tools\convert.py", line 698, in _tag_root
f(rec)
File "V:\Odoo\server\odoo\tools\convert.py", line 573, in _tag_record
f_val = _eval_xml(self, field, env)
File "V:\Odoo\server\odoo\tools\convert.py", line 143, in _eval_xml
+_process("".join(etree.tostring(n, encoding='unicode') for n in node))
File "V:\Odoo\server\odoo\tools\convert.py", line 132, in _process
self.idref[id] = self.id_get(id)
File "V:\Odoo\server\odoo\tools\convert.py", line 681, in id_get
res = self.model_id_get(id_str, raise_if_not_found)
File "V:\Odoo\server\odoo\tools\convert.py", line 687, 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 "V:\Odoo\server\odoo\addons\base\models\ir_model.py", line 2018, in _xmlid_to_res_model_res_id
return self._xmlid_lookup(xmlid)[1:3]
File "", line 2, in _xmlid_lookup
File "V:\Odoo\server\odoo\tools\cache.py", line 90, in lookup
value = d[key] = self.method(*args, **kwargs)
File "V:\Odoo\server\odoo\addons\base\models\ir_model.py", line 2011, in _xmlid_lookup
raise ValueError('External ID not found in the system: %s' % xmlid)
ValueError: External ID not found in the system: employee.office_employee_female_action

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

Traceback (most recent call last):
File "V:\Odoo\server\odoo\http.py", line 1579, in _serve_db
return service_model.retrying(self._serve_ir_http, self.env)
File "V:\Odoo\server\odoo\service\model.py", line 134, in retrying
result = func()
File "V:\Odoo\server\odoo\http.py", line 1608, in _serve_ir_http
response = self.dispatcher.dispatch(rule.endpoint, args)
File "V:\Odoo\server\odoo\http.py", line 1805, in dispatch
result = self.request.registry['ir.http']._dispatch(endpoint)
File "V:\Odoo\server\odoo\addons\base\models\ir_http.py", line 144, in _dispatch
result = endpoint(**request.params)
File "V:\Odoo\server\odoo\http.py", line 698, in route_wrapper
result = endpoint(self, *args, **params_ok)
File "V:\Odoo\server\odoo\addons\web\controllers\dataset.py", line 46, in call_button
action = self._call_kw(model, method, args, kwargs)
File "V:\Odoo\server\odoo\addons\web\controllers\dataset.py", line 33, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "V:\Odoo\server\odoo\api.py", line 461, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "V:\Odoo\server\odoo\api.py", line 448, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "", line 2, in button_immediate_install
File "V:\Odoo\server\odoo\addons\base\models\ir_module.py", line 76, in check_and_log
return method(self, *args, **kwargs)
File "V:\Odoo\server\odoo\addons\base\models\ir_module.py", line 491, in button_immediate_install
return self._button_immediate_function(type(self).button_install)
File "V:\Odoo\server\odoo\addons\base\models\ir_module.py", line 615, in _button_immediate_function
registry = modules.registry.Registry.new(self._cr.dbname, update_module=True)
File "", line 2, in new
File "V:\Odoo\server\odoo\tools\func.py", line 87, in locked
return func(inst, *args, **kwargs)
File "V:\Odoo\server\odoo\modules\registry.py", line 91, in new
odoo.modules.load_modules(registry, force_demo, status, update_module)
File "V:\Odoo\server\odoo\modules\loading.py", line 484, in load_modules
loaded_modules, update_module, models_to_check)
File "V:\Odoo\server\odoo\modules\loading.py", line 373, in load_marked_modules
perform_checks=perform_checks, models_to_check=models_to_check
File "V:\Odoo\server\odoo\modules\loading.py", line 230, in load_module_graph
load_data(cr, idref, mode, kind='data', package=package)
File "V:\Odoo\server\odoo\modules\loading.py", line 71, in load_data
tools.convert_file(cr, package.name, filename, idref, mode, noupdate, kind)
File "V:\Odoo\server\odoo\tools\convert.py", line 763, in convert_file
convert_xml_import(cr, module, fp, idref, mode, noupdate)
File "V:\Odoo\server\odoo\tools\convert.py", line 829, in convert_xml_import
obj.parse(doc.getroot())
File "V:\Odoo\server\odoo\tools\convert.py", line 749, in parse
self._tag_root(de)
File "V:\Odoo\server\odoo\tools\convert.py", line 715, in _tag_root
)) from e
odoo.tools.convert.ParseError: while parsing file:/v:/odoo/server/module/office_management_odoo/employee/views/office_emp.xml:23, somewhere inside
" rel="ugc">ir.ui.view">
office.employee.view.form
office.employee




































































The above server error caused the following client error:
RPC_ERROR: Odoo Server Error
at makeErrorFromResponse (http://localhost:8888/web/assets/debug/web.assets_backend.js:10165:19) (/web/static/src/core/network/rpc_service.js:34)
at XMLHttpRequest. (http://localhost:8888/web/assets/debug/web.assets_backend.js:10218:27) (/web/static/src/core/network/rpc_service.js:87)
0
Avatar
Annuleer
Avatar
Niyas Raphy (Walnut Software Solutions)
Beste antwoord

Hi,

As it stated, there is something wrong inside the specified xml file, it may be wrong syntax or some wrong content placed at the wrong place.

As in the error message see what is the line 23 of the line and see if everything is properly written.

Thanks

0
Avatar
Annuleer
Vivaan Shiromani
Auteur

Thanks for responding, I have mentioned, it is the form view with chatter which is on line 23 which the error says, inside my code. Here is a link to complete file and project please see.

https://filebin.net/mwlklp2ozx5sfctv

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
Gerelateerde posts Antwoorden Weergaven Activiteit
How to modify dynamically tree attribute inside form view in odoo16?
views xml odoo16features
Avatar
0
jan. 24
3668
How to use Javascript file in the xml file
javascript views xml odoo16features
Avatar
Avatar
1
feb. 24
4929
Custom made attributs in a view of a plugin aren't working
views xml plugin sudo() odoo16features
Avatar
0
jan. 24
2006
How to show view with domain/context filter?
action views xml button odoo16features
Avatar
Avatar
1
nov. 24
4026
[v13] Where can i find the external_id of a "popup" from view?
views xml popup formview external_id
Avatar
Avatar
2
jul. 20
4499
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