Ir al contenido
Odoo Menú
  • Iniciar sesión
  • Pruébalo gratis
  • Aplicaciones
    Finanzas
    • Contabilidad
    • Facturación
    • Gastos
    • Hoja de cálculo (BI)
    • Documentos
    • Firma electrónica
    Ventas
    • CRM
    • Ventas
    • PdV para tiendas
    • PdV para restaurantes
    • Suscripciones
    • Alquiler
    Sitios web
    • Creador de sitios web
    • Comercio electrónico
    • Blog
    • Foro
    • Chat en vivo
    • eLearning
    Cadena de suministro
    • Inventario
    • Manufactura
    • PLM
    • Compras
    • Mantenimiento
    • Calidad
    Recursos humanos
    • Empleados
    • Reclutamiento
    • Vacaciones
    • Evaluaciones
    • Referencias
    • Flotilla
    Marketing
    • Redes sociales
    • Marketing por correo
    • Marketing por SMS
    • Eventos
    • Automatización de marketing
    • Encuestas
    Servicios
    • Proyectos
    • Registro de horas
    • Servicio externo
    • Soporte al cliente
    • Planeación
    • Citas
    Productividad
    • Conversaciones
    • Aprobaciones
    • IoT
    • VoIP
    • Artículos
    • WhatsApp
    Aplicaciones externas Studio de Odoo Plataforma de Odoo en la nube
  • Industrias
    Venta minorista
    • Librería
    • Tienda de ropa
    • Mueblería
    • Tienda de abarrotes
    • Ferretería
    • Juguetería
    Alimentos y hospitalidad
    • Bar y pub
    • Restaurante
    • Comida rápida
    • Casa de huéspedes
    • Distribuidora de bebidas
    • Hotel
    Bienes inmuebles
    • Agencia inmobiliaria
    • Estudio de arquitectura
    • Construcción
    • Gestión de bienes inmuebles
    • Jardinería
    • Asociación de propietarios
    Consultoría
    • Firma contable
    • Partner de Odoo
    • Agencia de marketing
    • Bufete de abogados
    • Adquisición de talentos
    • Auditorías y certificaciones
    Manufactura
    • Textil
    • Metal
    • Muebles
    • Comida
    • Cervecería
    • Regalos corporativos
    Salud y ejercicio
    • Club deportivo
    • Óptica
    • Gimnasio
    • Especialistas en bienestar
    • Farmacia
    • Peluquería
    Trades
    • Personal de mantenimiento
    • Hardware y soporte de TI
    • Sistemas de energía solar
    • Zapateros y fabricantes de calzado
    • Servicios de limpieza
    • Servicios de calefacción, ventilación y aire acondicionado
    Otros
    • Organización sin fines de lucro
    • Agencia para la protección del medio ambiente
    • Alquiler de anuncios publicitarios
    • Fotografía
    • Alquiler de bicicletas
    • Distribuidor de software
    Descubre todas las industrias
  • Odoo Community
    Aprende
    • Tutoriales
    • Documentación
    • Certificaciones
    • Capacitación
    • Blog
    • Podcast
    Fortalece la educación
    • Programa educativo
    • Scale Up! El juego empresarial
    • Visita Odoo
    Obtén el software
    • Descargar
    • Compara ediciones
    • Versiones
    Colabora
    • GitHub
    • Foro
    • Eventos
    • Traducciones
    • Conviértete en partner
    • Servicios para partners
    • Registra tu firma contable
    Obtén servicios
    • Encuentra un partner
    • Encuentra un contador
    • Contacta a un consultor
    • Servicios de implementación
    • Referencias de clientes
    • Soporte
    • Actualizaciones
    GitHub YouTube Twitter LinkedIn Instagram Facebook Spotify
    +1 (650) 691-3277
    Solicita 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
  • Proyectos
  • 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

xpath errors in customise Qweb Report of odoo-9

Suscribirse

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

Se marcó esta pregunta
salesqwebtemplatesales.orderqweb-report
1 Responder
9003 Vistas
Avatar
Logicious

Hello,

i am working on sale order. i just repace the page of

report_saleorder_document .  and i added my customized page. when i tried to get install that module there are some xpath problems. I trying to digging to find out what was the real problem.at last i find out there are some modules related to sale order report.

1:- module: website_quote using xpath of sale order report -

a)<xpath expr="//div[@class='page']/div[@id='informations']"

b)<xpath expr="//div[@class='page']/p[@id='fiscal_position_remark']"

2:- sale_stock is using

<xpath expr="//div[@name='payment_term']" position="after">

3:- website_sale is using

<xpath expr="//div[@name='total']" position="after">

these are inherit that template ,and using the xpath to adding some extra values. Is there is any way to print my own custom sales order?


thanking you,

Logicious

 


0
Avatar
Descartar
Avatar
Temur
Mejor respuesta

Odoo v9  no more supports named attributes of Xpath (like @class='page', etc.). So, you'll need to rewrite Xpath expressions and use equivalent expressions without usage of named attributes.

UPDATE:

Try to use indexes, like:

 a)< xpath expr="//div[2]/div[5]", 

( indexes 2 and 5 are indicating position numbers. "//div[2]" should be second div in a parent view, accordingly "//div[2]/div[5]" - fifth child div of the second div in the parent view, etc... adapt it to your case)

Note: I've not tried it in v9, please report back if it'll work.

1
Avatar
Descartar
Yenthe Van Ginneken (Mainframe Monkey)

I still feel bad about the fact that they removed this ability though. It was so handy.

Temur

I have not tried this way, but indexes should still work, for example, instead of named attributes: a) <xpath expr="//div[@class='page']/div[@id='informations']" use indexes: a)< xpath expr="//div[2]/div[5]", of course you'll need to use index numbers adapted to your case.

Temur

Agree, it was very handy

Yenthe Van Ginneken (Mainframe Monkey)

And not to forget that those indexes are risky. When somewhere along the line you add the same elements again the numbering will remove the incorrect items. So not very stable.

Logicious
Autor

actuall i given the xpaths inside the base module of website_quote,website_sale,sale_stock. i want to create sale order , its fully customised . if i want to make it, entire page i need to replace , in this situation when i was trying to install the these base module arise the errors" particular xpath can't be located on sale order report" . Is there is any other solution to solve it rahter than create new one?

Pawan

Temur,
excuse for interruption, but this xpath expression do works in odoo 9 too, as i have tried it in one of my template.. ah... that might be exception in my scenario..... but it did worked...

Pawan

Logicious,
Please try looking for the path you are giving, does it really exist, you can take the help of HTML inspector for getting the right path, if its a pdf report, then first change the report type to HTML from settings -> Report -> Report, browse to your report and then change type to HTML for debugging, after wards you can make it back to pdf

¿Le interesa esta conversación? ¡Participe en ella!

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

Registrarse
Publicaciones relacionadas Respuestas Vistas Actividad
Sales Order Mail template and Report
view qweb template sales.order
Avatar
0
sept 15
5154
Action button in one to many field sending the object to a custom view of an existent model
sales views qweb context sales.order
Avatar
0
mar 21
2759
How to display changes to Delivered Quantities in Sales Orders in Chatter Resuelto
sales sales.order
Avatar
Avatar
1
mar 25
2498
Sales stay in "To Invoice" despite already being paid.
sales sales.order
Avatar
Avatar
1
may 24
2692
[SOLVED]How to remove currency symbol from Monetary field qweb report ?
qweb qweb-report
Avatar
Avatar
Avatar
Avatar
7
oct 25
29577
Comunidad
  • Tutoriales
  • Documentación
  • Foro
Código abierto
  • Descargar
  • GitHub
  • Runbot
  • Traducciones
Servicios
  • Alojamiento en Odoo.sh
  • Soporte
  • Actualizaciones del software
  • Desarrollos personalizados
  • Educación
  • Encuentra un contador
  • Encuentra un partner
  • Conviértete en partner
Sobre nosotros
  • Nuestra empresa
  • Activos de marca
  • Contáctanos
  • Empleos
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • 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 estar 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