Ir al contenido
Odoo Menú
  • Identificarse
  • Pruébalo gratis
  • Aplicaciones
    Finanzas
    • Contabilidad
    • Facturación
    • Gastos
    • Hoja de cálculo (BI)
    • Documentos
    • Firma electrónica
    Ventas
    • CRM
    • Ventas
    • TPV para tiendas
    • TPV para restaurantes
    • Suscripciones
    • Alquiler
    Sitios web
    • Creador de sitios web
    • Comercio electrónico
    • Blog
    • Foro
    • Chat en directo
    • e-learning
    Cadena de suministro
    • Inventario
    • Fabricación
    • PLM
    • Compra
    • Mantenimiento
    • Calidad
    Recursos Humanos
    • Empleados
    • Reclutamiento
    • Ausencias
    • Evaluación
    • Referencias
    • Flota
    Marketing
    • Marketing social
    • Marketing por correo electrónico
    • Marketing por SMS
    • Eventos
    • Automatización de marketing
    • Encuestas
    Servicios
    • Proyecto
    • Partes de horas
    • Servicio de campo
    • Servicio de asistencia
    • Planificación
    • Citas
    Productividad
    • Conversaciones
    • Aprobaciones
    • IoT
    • VoIP
    • Conocimientos
    • WhatsApp
    Aplicaciones de terceros Studio de Odoo Plataforma de Odoo Cloud
  • Industrias
    Comercio al por menor
    • Librería
    • Tienda de ropa
    • Tienda de muebles
    • Tienda de ultramarinos
    • Ferretería
    • Juguetería
    Alimentación y hostelería
    • Bar y taberna
    • Restaurante
    • Comida rápida
    • Casa de huéspedes
    • Distribuidor de bebidas
    • Hotel
    Inmueble
    • Agencia inmobiliaria
    • Estudio de arquitectura
    • Construcción
    • Gestión inmobiliaria
    • Jardinería
    • Asociación de propietarios
    Consultoría
    • Empresa contable
    • Partner de Odoo
    • Agencia de marketing
    • Bufete de abogados
    • Adquisición de talentos
    • Auditorías y certificaciones
    Fabricación
    • Textil
    • Metal
    • Muebles
    • Alimentos
    • Brewery
    • Regalos de empresas
    Salud y bienestar
    • Club deportivo
    • Óptica
    • Gimnasio
    • Terapeutas
    • Farmacia
    • Peluquería
    Oficios
    • Handyman
    • Hardware y asistencia informática
    • Sistemas de energía solar
    • Zapatero
    • Servicios de limpieza
    • Servicios de calefacción, ventilación y aire acondicionado
    Otros
    • Organización sin ánimo de lucro
    • Agencia de protección del medio ambiente
    • Alquiler de paneles publicitarios
    • Estudio fotográfico
    • Alquiler de bicicletas
    • Distribuidor de software
    Explorar todos los sectores
  • Comunidad
    Aprender
    • Tutoriales
    • Documentación
    • Certificaciones
    • Formación
    • Blog
    • Podcast
    Potenciar la educación
    • Programa de formación
    • Scale Up! El juego empresarial
    • Visita Odoo
    Obtener el software
    • Descargar
    • Comparar ediciones
    • Versiones
    Colaborar
    • GitHub
    • Foro
    • Eventos
    • Traducciones
    • Convertirse en partner
    • Servicios para partners
    • Registrar tu empresa contable
    Obtener servicios
    • Encontrar un partner
    • Encontrar un asesor fiscal
    • Contacta con un experto
    • Servicios de implementación
    • Referencias de clientes
    • Ayuda
    • Actualizaciones
    GitHub YouTube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Solicitar una demostración
  • Precios
  • Ayuda

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

  • CRM
  • e-Commerce
  • Contabilidad
  • Inventario
  • PoS
  • Proyecto
  • MRP
All apps
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Ayuda

How to solve AssertionError in XML file: (Keep getting it often)

Suscribirse

Reciba una notificación cuando haya actividad en esta publicación

Se marcó esta pregunta
v15
2 Respuestas
3189 Vistas
Avatar
Sri Haari
File "src/lxml/etree.pyx", line 3633, in lxml.etree._Validator.assert_
Exception

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

Traceback (most recent call last):
  File "/home/ubuntu/odoo/fnet_v15/odoo-server/odoo/http.py", line 644, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/home/ubuntu/odoo/fnet_v15/odoo-server/odoo/http.py", line 302, in _handle_exception
    raise exception.with_traceback(None) from new_cause
AssertionError: Element odoo has extra content: record, line 4

MY XML CODE:


xml version="1.0" encoding="UTF-8"?>


model="ir.ui.view" id="employee_portal_kanban_view">
name="name">Self Employee
name="model">hr.employee.portal
name="arch" type="xml">

name="emp_id"/>

t-name="kanban-box">
t-attf-class="oe_kanban_global_click">


class="fa-solid fa-user" role="img" aria-label="My Profile"/>
t-esc="record.emp_id.value"/>









model="ir.ui.view" id="employee_portal_form_view">
name="name">Self Employee
name="model">hr.employee.portal
name="arch" type="xml">



name="emp_id"/>







model="ir.actions.act_window" id="employee_portal_action_window">
name="name">Self Employee
name="res_model">hr.employee.portal
name="view_mode">kanban,form


name="employee_portal"
id="employee_portal_menu_root"
string="My Profile"
action="employee_portal_action_window"
web_icon="static/description/icon.png"/>


name="My Details"
id="employee_portal_my_details_menu"
parent="employee_portal_menu_root"/>


Thanks in advance :)


0
Avatar
Descartar
Avatar
Niyas Raphy (Walnut Software Solutions)
Mejor respuesta

Hi,

This error is raised when the written/given syntax in the XML file is wrong.

As the pasted code in the question is not in the right format, it will be hard to trace.


In order to resolve this, you have to go through the xml file and have to trace which line of code is causing the issue. This can be achieved by commenting the code section by section in the xml file and trace the which line of code is wrong.


And if it repeats often, same mistakes you repeat in the code :)

Thanks

1
Avatar
Descartar
Avatar
Sri Haari
Autor Mejor respuesta

Hi Niyas, 

actually the time I pasted my xml code in the description box and saved this post, codes where kind of separated all over as you can see. So I'll try to paste it here in this post answer and see how it looks.



Self Employee
hr.employee.portal




















Self Employee
hr.employee.portal












Self Employee
hr.employee.portal
kanban,form


id="employee_portal_menu_root"
string="My Profile"
action="employee_portal_action_window"
web_icon="static/description/icon.png"/>


id="employee_portal_my_details_menu"
parent="employee_portal_menu_root"/>

Anyways dint expect Niyas Raphy himself to help me out! You are awesome, trying to help solve every user's bugs in this forum. Keep up the good work and thank you so much.
0
Avatar
Descartar
¿Le interesa esta conversación? ¡Participe en ella!

Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.

Inscribirse
Publicaciones relacionadas Respuestas Vistas Actividad
Prevent navigation if records are not save
v15
Avatar
Avatar
Avatar
2
oct 25
3293
Creating user creates duplicated partner_id
v15
Avatar
Avatar
1
sept 25
3205
Sales order line comment to Purchase order line comment Resuelto
v15
Avatar
Avatar
3
jul 25
4463
attribute is not applied when dynamically rendering
v15
Avatar
1
may 25
2589
Odoo Custome Module Language Creation
v15
Avatar
Avatar
Avatar
Avatar
4
may 25
3989
Comunidad
  • Tutoriales
  • Documentación
  • Foro
Código abierto
  • Descargar
  • GitHub
  • Runbot
  • Traducciones
Servicios
  • Alojamiento Odoo.sh
  • Ayuda
  • Actualizar
  • Desarrollos personalizados
  • Educación
  • Encontrar un asesor fiscal
  • Encontrar un partner
  • Convertirse en partner
Sobre nosotros
  • Nuestra empresa
  • Activos de marca
  • Contacta con nosotros
  • Puestos de trabajo
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • Información legal • Privacidad
  • Seguridad
الْعَرَبيّة 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 es un conjunto de aplicaciones de código abierto que cubren todas las necesidades de tu empresa: CRM, comercio electrónico, contabilidad, inventario, punto de venta, gestión de proyectos, etc.

La propuesta única de valor de Odoo es ser muy fácil de usar y totalmente integrado.

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