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
    • eLearning
    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
    • Información
    • 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
    Browse all Industries
  • 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
    • Services for 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 change the POS Button Invoice print to an other report?

Suscribirse

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

Se marcó esta pregunta
posqwebbuttonspoint_of_saleodoo9
3 Respuestas
11109 Vistas
Avatar
wizardz

I want to change the report behind this button:



Behind that button is the "point_of_sale.report_invoice".

Now I want to change that, that another report is printed out.

What is the best way to do that?


How can I add this to the invoice in pos ?


Thank you

0
Avatar
Descartar
Avatar
Jainesh Shah(Aktiv Software)
Mejor respuesta

To replace default invoice report in POS, you need to extend "push_and_invoice_order" function of models.js file in point_of_sale and replace following code:

self.chrome.do_action('pos_custom_module.custom_report_id',{additional_context:{active_ids:order_server_id,}});


2
Avatar
Descartar
wizardz
Autor

hello, thank you for your fast answer, when I change it to this with the name of my own report, the old invoice report is still printed out:

self.chrome.do_action('own_report',{additional_context:{active_ids:order_server_id,}});

Jainesh Shah(Aktiv Software)

Will you please check with new POS Session?

wizardz
Autor

same problem...

Avatar
Niyas Raphy (Walnut Software Solutions)
Mejor respuesta

Hi Wizards,

To change the default report into another one, you can make change in the original code or you can do it by a custom module,

if you are looking to change it by custom module then you can do it as follows, you can mention the new report name at

<field name="report_name">module_name.report_id</field>
<record id="point_of_sale.pos_invoice_report" model="ir.actions.report.xml">
<field name="name">Invoice</field>
<field name="model">pos.order</field>
<field name="report_type">qweb-pdf</field>
<field name="report_name">module_name.report_id</field>
</record>

if you are going to do it in original code, then point of sale -> views -> point_of_sale_report.xml then you can change the record in the id "pos_invoice_report" like this.

<record id="pos_invoice_report" model="ir.actions.report.xml">
<field name="name">Invoice</field>
<field name="model">pos.order</field>
<field name="report_type">qweb-pdf</field>
<field name="report_name">module_name.report_id</field>
</record>
1
Avatar
Descartar
wizardz
Autor

hi, thank you for the fast answer.

when I try to change that to my own report, I get an error.

Is this because my report comes not from the point_of_sale module?:

In Odoo9 :

<report

id="pos_invoice_report"

string="Invoice"

model="pos.order"

report_type="qweb-pdf"

name="own_report"

file="own_report"

/>

Niyas Raphy (Walnut Software Solutions)

hi, what error you got ? you have to mention the report name as module_name.report_id

wizardz
Autor

and what if the report doesn't come from a module, I made that directly in odoo xml reports?

Niyas Raphy (Walnut Software Solutions)

So you created the report from the user interface, to get the external id of that report you can activate the developer mode then , go to settings-> technical->reports -> reports , then select the report, then from the lady debug button (button in top menu bar near logged in user) select view meta data, on clicking it you will get the id of the report from XML ID, give this id

wizardz
Autor

yes but my problem is, that I don't have any xml ID

Niyas Raphy (Walnut Software Solutions)

Did you checked the way i have mentioned above to get XML ID?

wizardz
Autor

the problem is that this report doesn't have any xml id , because it's made with aeroo reports

Gersjan Nano

@Niyas I changed the report_name as you mentioned above but when I try to print the report from POS, a message is shown, saying that I should print the invoice from the backend. Any idea what may be causing this?

Gersjan Nano

@Niyas I forgot to mention, I am using odoo 12

Avatar
Itachi
Mejor respuesta

hello sir how can i keep highlighted the invoice button in pos payment screen 

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
Rupee symbol problem
chrome pos point_of_sale odoo9
Avatar
0
oct 20
3509
print pos receipt
pos qweb reporting point_of_sale
Avatar
0
jul 15
3765
how to print POS order name as Barcode in receipt ?
pos ticket qweb barcode point_of_sale
Avatar
Avatar
1
sept 21
4704
css load bundle error 'point_of_sale.assets'
pos css point_of_sale odoo9 odoo9.0
Avatar
Avatar
1
sept 24
7532
Extend POS receipt. Append barcode with order id
pos qweb receipt posticket point_of_sale
Avatar
Avatar
1
sept 17
6849
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