Se rendre au contenu
Odoo Menu
  • Se connecter
  • Essai gratuit
  • Applications
    Finance
    • Comptabilité
    • Facturation
    • Notes de frais
    • Feuilles de calcul (BI)
    • Documents
    • Signature
    Ventes
    • CRM
    • Ventes
    • PdV Boutique
    • PdV Restaurant
    • Abonnements
    • Location
    Sites web
    • Site Web
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Chaîne d'approvisionnement
    • Inventaire
    • Fabrication
    • PLM
    • Achats
    • Maintenance
    • Qualité
    Ressources Humaines
    • Employés
    • Recrutement
    • Congés
    • Évaluations
    • Recommandations
    • Parc automobile
    Marketing
    • Marketing Social
    • E-mail Marketing
    • SMS Marketing
    • Événements
    • Marketing Automation
    • Sondages
    Services
    • Projet
    • Feuilles de temps
    • Services sur Site
    • Assistance
    • Planification
    • Rendez-vous
    Productivité
    • Discussion
    • Validations
    • Internet des Objets
    • VoIP
    • Connaissances
    • WhatsApp
    Applications tierces Odoo Studio Plateforme Cloud d'Odoo
  • Industries
    Commerce de détail
    • Librairie
    • Magasin de vêtements
    • Magasin de meubles
    • Épicerie
    • Quincaillerie
    • Magasin de jouets
    Food & Hospitality
    • Bar et Pub
    • Restaurant
    • Fast-food
    • Maison d’hôtes
    • Distributeur de boissons
    • Hôtel
    Immobilier
    • Agence immobilière
    • Cabinet d'architecture
    • Construction
    • Gestion immobilière
    • Jardinage
    • Association de copropriétaires
    Consultance
    • Cabinet d'expertise comptable
    • Partenaire Odoo
    • Agence Marketing
    • Cabinet d'avocats
    • Aquisition de talents
    • Audit & Certification
    Fabrication
    • Textile
    • Métal
    • Meubles
    • Alimentation
    • Brewery
    • Cadeaux d'entreprise
    Santé & Fitness
    • Club de sports
    • Opticien
    • Salle de fitness
    • Praticiens bien-être
    • Pharmacie
    • Salon de coiffure
    Trades
    • Bricoleur
    • Matériel informatique et support
    • Systèmes photovoltaïques
    • Cordonnier
    • Services de nettoyage
    • Services CVC
    Autres
    • Organisation à but non lucratif
    • Agence environnementale
    • Location de panneaux d'affichage
    • Photographie
    • Leasing de vélos
    • Revendeur de logiciel
    Browse all Industries
  • Communauté
    Apprenez
    • Tutoriels
    • Documentation
    • Certifications
    • Formation
    • Blog
    • Podcast
    Renforcer l'éducation
    • Programme éducatif
    • Business Game Scale-Up!
    • Rendez-nous visite
    Obtenir le logiciel
    • Téléchargement
    • Comparez les éditions
    • Versions
    Collaborer
    • Github
    • Forum
    • Événements
    • Traductions
    • Devenez partenaire
    • Services for Partners
    • Enregistrer votre cabinet comptable
    Nos Services
    • Trouver un partenaire
    • Trouver un comptable
    • Rencontrer un conseiller
    • Services de mise en œuvre
    • Références clients
    • Assistance
    • Mises à niveau
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obtenir une démonstration
  • Tarification
  • Aide

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

  • CRM
  • e-Commerce
  • Comptabilité
  • Inventaire
  • PoS
  • Projet
  • MRP
All apps
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Aide

How to generate a report from a wizard?

S'inscrire

Recevez une notification lorsqu'il y a de l'activité sur ce poste

Cette question a été signalée
wizardreportingreport
1 Répondre
33128 Vues
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
Ignorer
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
Meilleure réponse

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
Ignorer
Yakito
Auteur

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.

Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !

Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !

S'inscrire
Publications associées Réponses Vues Activité
Generate PDF Report From Wizard
accounting wizard reporting report
Avatar
Avatar
Avatar
2
juil. 23
7957
Change PDF report name on wizard
wizard report
Avatar
Avatar
2
juil. 24
4113
Chaning the Reportname
reporting report
Avatar
Avatar
1
juil. 24
2122
Blank report PDF from Wizard Résolu
wizard report
Avatar
Avatar
2
avr. 24
3643
External ID not found in the system
wizard report
Avatar
4
oct. 20
6576
Communauté
  • Tutoriels
  • Documentation
  • Forum
Open Source
  • Téléchargement
  • Github
  • Runbot
  • Traductions
Services
  • Hébergement Odoo.sh
  • Assistance
  • Migration
  • Développements personnalisés
  • Éducation
  • Trouver un comptable
  • Trouver un partenaire
  • Devenez partenaire
À propos
  • Notre société
  • Actifs de la marque
  • Contactez-nous
  • Emplois
  • Événements
  • Podcast
  • Blog
  • Clients
  • Informations légales • Confidentialité
  • Sécurité.
الْعَرَبيّة 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 est une suite d'applications open source couvrant tous les besoins de votre entreprise : CRM, eCommerce, Comptabilité, Inventaire, Point de Vente, Gestion de Projet, etc.

Le positionnement unique d'Odoo est d'être à la fois très facile à utiliser et totalement intégré.

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