Se rendre au contenu
Odoo Menu
  • Se connecter
  • Essai gratuit
  • Applications
    Finance
    • Comptabilité
    • Facturation
    • Notes de frais
    • Feuilles de calcul (BI)
    • Documents
    • Signature
    Ventes
    • CRM
    • Ventes
    • PdV Boutique
    • PdV Restaurant
    • Abonnements
    • Location
    Sites web
    • Site Web
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Chaîne d'approvisionnement
    • Inventaire
    • Fabrication
    • PLM
    • Achats
    • Maintenance
    • Qualité
    Ressources Humaines
    • Employés
    • Recrutement
    • Congés
    • Évaluations
    • Recommandations
    • Parc automobile
    Marketing
    • Marketing Social
    • E-mail Marketing
    • SMS Marketing
    • Événements
    • Marketing Automation
    • Sondages
    Services
    • Projet
    • Feuilles de temps
    • Services sur Site
    • Assistance
    • Planification
    • Rendez-vous
    Productivité
    • Discussion
    • Validations
    • Internet des Objets
    • VoIP
    • Connaissances
    • WhatsApp
    Applications tierces Odoo Studio Plateforme Cloud d'Odoo
  • Industries
    Commerce de détail
    • Librairie
    • Magasin de vêtements
    • Magasin de meubles
    • Épicerie
    • Quincaillerie
    • Magasin de jouets
    Food & Hospitality
    • Bar et Pub
    • Restaurant
    • Fast-food
    • Maison d’hôtes
    • Distributeur de boissons
    • Hôtel
    Immobilier
    • Agence immobilière
    • Cabinet d'architecture
    • Construction
    • Gestion immobilière
    • Jardinage
    • Association de copropriétaires
    Consultance
    • Cabinet d'expertise comptable
    • Partenaire Odoo
    • Agence Marketing
    • Cabinet d'avocats
    • Aquisition de talents
    • Audit & Certification
    Fabrication
    • Textile
    • Métal
    • Meubles
    • Alimentation
    • Brewery
    • Cadeaux d'entreprise
    Santé & Fitness
    • Club de sports
    • Opticien
    • Salle de fitness
    • Praticiens bien-être
    • Pharmacie
    • Salon de coiffure
    Trades
    • Bricoleur
    • Matériel informatique et support
    • Systèmes photovoltaïques
    • Cordonnier
    • Services de nettoyage
    • Services CVC
    Autres
    • Organisation à but non lucratif
    • Agence environnementale
    • Location de panneaux d'affichage
    • Photographie
    • Leasing de vélos
    • Revendeur de logiciel
    Browse all Industries
  • Communauté
    Apprenez
    • Tutoriels
    • Documentation
    • Certifications
    • Formation
    • Blog
    • Podcast
    Renforcer l'éducation
    • Programme éducatif
    • Business Game Scale-Up!
    • Rendez-nous visite
    Obtenir le logiciel
    • Téléchargement
    • Comparez les éditions
    • Versions
    Collaborer
    • Github
    • Forum
    • Événements
    • Traductions
    • Devenez partenaire
    • Services for Partners
    • Enregistrer votre cabinet comptable
    Nos Services
    • Trouver un partenaire
    • Trouver un comptable
    • Rencontrer un conseiller
    • Services de mise en œuvre
    • Références clients
    • Assistance
    • Mises à niveau
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obtenir une démonstration
  • Tarification
  • Aide

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

  • CRM
  • e-Commerce
  • Comptabilité
  • Inventaire
  • PoS
  • Projet
  • MRP
All apps
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Aide

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

S'inscrire

Recevez une notification lorsqu'il y a de l'activité sur ce poste

Cette question a été signalée
viewsxmlformviewParseErrorodoo16features
1 Répondre
22711 Vues
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
Ignorer
Avatar
Niyas Raphy (Walnut Software Solutions)
Meilleure réponse

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
Ignorer
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

Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !

Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !

S'inscrire
Publications associées Réponses Vues Activité
How to modify dynamically tree attribute inside form view in odoo16?
views xml odoo16features
Avatar
0
janv. 24
3677
How to use Javascript file in the xml file
javascript views xml odoo16features
Avatar
Avatar
1
févr. 24
4946
Custom made attributs in a view of a plugin aren't working
views xml plugin sudo() odoo16features
Avatar
0
janv. 24
2011
How to show view with domain/context filter?
action views xml button odoo16features
Avatar
Avatar
1
nov. 24
4038
[v13] Where can i find the external_id of a "popup" from view?
views xml popup formview external_id
Avatar
Avatar
2
juil. 20
4505
Communauté
  • Tutoriels
  • Documentation
  • Forum
Open Source
  • Téléchargement
  • Github
  • Runbot
  • Traductions
Services
  • Hébergement Odoo.sh
  • Assistance
  • Migration
  • Développements personnalisés
  • Éducation
  • Trouver un comptable
  • Trouver un partenaire
  • Devenez partenaire
À propos
  • Notre société
  • Actifs de la marque
  • Contactez-nous
  • Emplois
  • Événements
  • Podcast
  • Blog
  • Clients
  • Informations légales • Confidentialité
  • Sécurité.
الْعَرَبيّة 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 est une suite d'applications open source couvrant tous les besoins de votre entreprise : CRM, eCommerce, Comptabilité, Inventaire, Point de Vente, Gestion de Projet, etc.

Le positionnement unique d'Odoo est d'être à la fois très facile à utiliser et totalement intégré.

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