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

Error: partner_bank_id cannot be located in parent view - odoo19

Suscribirse

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

Se marcó esta pregunta
odoo19Odoo19.0payment_communicationprintouts_eng_arabic
3 Respuestas
254 Vistas
Avatar
Maaz Aslam

i am getting this error 


Element '<xpath expr="//p[@name=&#39;payment_communication&#39;]//t[@t-if=&#39;o.partner_bank_id&#39;]">' cannot be located in parent view


View error context:

{'file': '/home/odoo/src/user/printouts_eng_arabic/views/report_invoice_eng_ar_view.xml',

'line': 1,

'name': 'report_invoice_document_preview',

'view': ir.ui.view(10177,),

'view.model': False,

'view.parent': ir.ui.view(478,),

'xmlid': 'report_invoice_document_eng_ar'}


0
Avatar
Descartar
Maaz Aslam
Autor

yes i have checked it and this is coming from base modules specifically in /odoo19/base/addons/account/views/report_templates.xml and the paragraph with this name exists in parent 

Avatar
Cybrosys Techno Solutions Pvt.Ltd
Mejor respuesta
Hi,
This error occurs because the XPath expression you provided is trying to locate an element that does not exist in the parent view. When Odoo processes an inherited view, it must find the exact element specified in the XPath; if the structure has changed, the tag isn’t present, or the wrong parent template is being inherited, Odoo cannot match the XPath and raises this error. Updating your XPath to reference an actual element.  Also ensure that your inherited template uses the correct parent view

Hope it helps


-1
Avatar
Descartar
Avatar
Kunjan Patel
Mejor respuesta
Hello Maaz Aslam,
I hope you are doing well,

Change your inherit_id to account.report_invoice_document instead of account.report_invoice_document_preview, or use XPath //p[@name='payment_communication'] without the nested //t[@t-if='o.partner_bank_id'] part.

I hope this information helps you

Thanks & Regards,
Kunjan Patel
0
Avatar
Descartar
Avatar
Karan B K
Mejor respuesta

Hi Maaz,

This error happens because the XPath is pointing to an element that no longer exists in the original view. In other words, Odoo is trying to find <t t-if="o.partner_bank_id"> inside <p name="payment_communication">, but that structure isn’t there anymore.


This can happen if the base view changed in Odoo, or if another inherited view (loaded before yours) modified or removed those elements. So the best approach is to check the parent view and any other inherited views to see what changed.

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
"Ghost" cache - Stubborn problem in Odoo Custom development
odoo19
Avatar
0
oct 25
862
Purchase Requisition feature missing in Purchase module Resuelto
purchase Odoo19.0
Avatar
Avatar
1
nov 25
477
"Missing required fields" when saving settings in Odoo 19 test Resuelto
settings Odoo19.0
Avatar
Avatar
1
nov 25
1421
Upgrade to Odoo 19 Resuelto
upgrade odoo19
Avatar
Avatar
1
oct 25
4865
Remote Work Configuration Missing in Odoo 19 Resuelto
Odoo19.0 V19.0
Avatar
Avatar
2
oct 25
500
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