Passa al contenuto
Odoo Menu
  • Accedi
  • Provalo gratis
  • App
    Finanze
    • Contabilità
    • Fatturazione
    • Note spese
    • Fogli di calcolo (BI)
    • Documenti
    • Firma
    Vendite
    • CRM
    • Vendite
    • Punto vendita Negozio
    • Punto vendita Ristorante
    • Abbonamenti
    • Noleggi
    Siti web
    • Configuratore sito web
    • E-commerce
    • Blog
    • Forum
    • Live chat
    • E-learning
    Supply chain
    • Magazzino
    • Produzione
    • PLM
    • Acquisti
    • Manutenzione
    • Qualità
    Risorse umane
    • Dipendenti
    • Assunzioni
    • Ferie
    • Valutazioni
    • Referral dipendenti
    • Parco veicoli
    Marketing
    • Social marketing
    • E-mail marketing
    • SMS marketing
    • Eventi
    • Marketing automation
    • Sondaggi
    Servizi
    • Progetti
    • Fogli ore
    • Assistenza sul campo
    • Helpdesk
    • Pianificazione
    • Appuntamenti
    Produttività
    • Comunicazioni
    • Approvazioni
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    App di terze parti Odoo Studio Piattaforma cloud Odoo
  • Settori
    Retail
    • Libreria
    • Negozio di abbigliamento
    • Negozio di arredamento
    • Alimentari
    • Ferramenta
    • Negozio di giocattoli
    Cibo e ospitalità
    • Bar e pub
    • Ristorante
    • Fast food
    • Pensione
    • Grossista di bevande
    • Hotel
    Agenzia immobiliare
    • Agenzia immobiliare
    • Studio di architettura
    • Edilizia
    • Gestione immobiliare
    • Impresa di giardinaggio
    • Associazione di proprietari immobiliari
    Consulenza
    • Società di contabilità
    • Partner Odoo
    • Agenzia di marketing
    • Studio legale
    • Selezione del personale
    • Audit e certificazione
    Produzione
    • Tessile
    • Metallo
    • Arredamenti
    • Alimentare
    • Birrificio
    • Ditta di regalistica aziendale
    Benessere e sport
    • Club sportivo
    • Negozio di ottica
    • Centro fitness
    • Centro benessere
    • Farmacia
    • Parrucchiere
    Commercio
    • Tuttofare
    • Hardware e assistenza IT
    • Ditta di installazione di pannelli solari
    • Calzolaio
    • Servizi di pulizia
    • Servizi di climatizzazione
    Altro
    • Organizzazione non profit
    • Ente per la tutela ambientale
    • Agenzia di cartellonistica pubblicitaria
    • Studio fotografico
    • Punto noleggio di biciclette
    • Rivenditore di software
    Carica tutti i settori
  • Community
    Apprendimento
    • Tutorial
    • Documentazione
    • Certificazioni 
    • Formazione
    • Blog
    • Podcast
    Potenzia la tua formazione
    • Programma educativo
    • Scale Up! Business Game
    • Visita Odoo
    Ottieni il software
    • Scarica
    • Versioni a confronto
    • Note di versione
    Collabora
    • Github
    • Forum
    • Eventi
    • Traduzioni
    • Diventa nostro partner
    • Servizi per partner
    • Registra la tua società di contabilità
    Ottieni servizi
    • Trova un partner
    • Trova un contabile
    • Incontra un esperto
    • Servizi di implementazione
    • Testimonianze dei clienti
    • Supporto
    • Aggiornamenti
    GitHub Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Richiedi una demo
  • Prezzi
  • Aiuto

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

  • CRM
  • e-Commerce
  • Contabilità
  • Magazzino
  • PoS
  • Progetti
  • MRP
All apps
È necessario essere registrati per interagire con la community.
Tutti gli articoli Persone Badge
Etichette (Mostra tutto)
odoo accounting v14 pos v15
Sul forum
È necessario essere registrati per interagire con la community.
Tutti gli articoli Persone Badge
Etichette (Mostra tutto)
odoo accounting v14 pos v15
Sul forum
Assistenza

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

Iscriviti

Ricevi una notifica quando c'è un'attività per questo post

La domanda è stata contrassegnata
viewsxmlformviewParseErrorodoo16features
1 Rispondi
22714 Visualizzazioni
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
Abbandona
Avatar
Niyas Raphy (Walnut Software Solutions)
Risposta migliore

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
Abbandona
Vivaan Shiromani
Autore

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

Ti stai godendo la conversazione? Non leggere soltanto, partecipa anche tu!

Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!

Registrati
Post correlati Risposte Visualizzazioni Attività
How to modify dynamically tree attribute inside form view in odoo16?
views xml odoo16features
Avatar
0
gen 24
3679
How to use Javascript file in the xml file
javascript views xml odoo16features
Avatar
Avatar
1
feb 24
4947
Custom made attributs in a view of a plugin aren't working
views xml plugin sudo() odoo16features
Avatar
0
gen 24
2014
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
lug 20
4505
Community
  • Tutorial
  • Documentazione
  • Forum
Open source
  • Scarica
  • Github
  • Runbot
  • Traduzioni
Servizi
  • Hosting Odoo.sh
  • Supporto
  • Aggiornamenti
  • Sviluppi personalizzati
  • Formazione
  • Trova un contabile
  • Trova un partner
  • Diventa nostro partner
Chi siamo
  • La nostra azienda
  • Branding
  • Contattaci
  • Lavora con noi
  • Eventi
  • Podcast
  • Blog
  • Clienti
  • Note legali • Privacy
  • Sicurezza
الْعَرَبيّة 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 è un gestionale di applicazioni aziendali open source pensato per coprire tutte le esigenze della tua azienda: CRM, Vendite, E-commerce, Magazzino, Produzione, Fatturazione elettronica, Project Management e molto altro.

Il punto di forza di Odoo è quello di offrire un ecosistema unico di app facili da usare, intuitive e completamente integrate tra loro.

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