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 generate a report from a wizard?

Suscribirse

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

Se marcó esta pregunta
wizardreportingreport
1 Responder
33106 Vistas
Avatar
Yakito

Hello,

I am looking for documentation/example modules or anything were I can learn how to create a report from a wizard. The ending report should use the variables passed by the wizard to generate the PDF.

For example a report that would show only the rows in my module were the date field is June.

I already have the wizard working but I don't understand how to link the print button to a report or even how to send the variables to be able to generate the report with them.

Any module or documentation that anyone can point me would be much appreciated as I couldn't find much.

Thanks in advance

1
Avatar
Descartar
Anuradha

hi, i have the same need. i created report, added it to open erp,my report is of type pentaho.when clicking print it shows entire data, filtering not works.my form is same as Reports/point of sale/sale Details, the difference is that i am using pentaho reporting.How can i filter data please help

evon_dun

Can you help me in saving the Partner Ledger Report (webkit) to attachments, it has a many2many field partner_ids, i want to save the pdf as partner_name.pdf, please help in writing the expression for that.

Avatar
Keyur
Mejor respuesta

Hi Yokito,

I am giving you the simplest way to generate report from wizard. Just follow the steps:

(1) Make a simple report in your report.xml file.

(2) Make a simple wizard with a button

Button 1-For generate report

(3) On a button call a method like this,

def print_report(self, cr, uid, ids, context=None):
    datas = {}
    if context is None:
        context = {}
    data = self.read(cr, uid, ids)[0]
    datas = {
                 'ids': [],
                 'model': 'object.object',
                 'form': data
    }
    return {'type': 'ir.actions.report.xml', 'report_name': 'your_report_name', 'datas': datas}

(3) Start your server, update your module, open a wizard you created click on the button and then the report will print.

Hope these guidelines are helpful to generate report from wizard.

Thanks.

5
Avatar
Descartar
Yakito
Autor

Thanks, so datas is passing the variables from my form, right? And I can access them through a function in my report_name.py?

Keyur

Yes sure. By repeatIn in rml you can have a loop if you have multiple records or you can call a function from rml file. Take a look at this link http://bazaar.launchpad.net/~openerp/openobject-addons/7.0/view/head:/point_of_sale/report/account_statement.rml#L155

Anuradha

hi, i have the same need. i created report, added it to open erp,my report is of type pentaho.when clicking print it shows entire data, filtering not works.my form is same as Reports/point of sale/sale Details, the difference is that i am using pentaho reporting.How can i filter data please help

Keyur

Sorry but I have not any idea about Pentaho reports. But I think it would be same as for the other reports.

evon_dun

I am calling an already created report of mine which shows the list of the invoices. I added two fields date_from n date_to to the wizard that prints this report but i am not able to print these dates on the report. Please help. here is the link to my detailed question http://help.openerp.com/question/34705/print-value-of-a-field-in-wizard-to-report/

Anabela Damas

Hi! I did that but then my wizard doesn't close, do you have any suggestion?

Cruz

I created a sample report from wizard, but the report seems to be blank. How can I solve it.

¿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
Generate PDF Report From Wizard
accounting wizard reporting report
Avatar
Avatar
Avatar
2
jul 23
7930
Change PDF report name on wizard
wizard report
Avatar
Avatar
2
jul 24
4102
Chaning the Reportname
reporting report
Avatar
Avatar
1
jul 24
2117
Blank report PDF from Wizard Resuelto
wizard report
Avatar
Avatar
2
abr 24
3629
External ID not found in the system
wizard report
Avatar
4
oct 20
6558
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