Skip to Content
Odoo Menu
  • Prihlásiť sa
  • Vyskúšajte zadarmo
  • Aplikácie
    Financie
    • Účtovníctvo
    • Fakturácia
    • Výdavky
    • Tabuľka (BI)
    • Dokumenty
    • Podpis
    Predaj
    • CRM
    • Predaj
    • POS Shop
    • POS Restaurant
    • Manažment odberu
    • Požičovňa
    Webstránky
    • Tvorca webstránok
    • eShop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Supply Chain
    • Sklad
    • Výroba
    • Správa životného cyklu produktu
    • Nákup
    • Údržba
    • Manažment kvality
    Ľudské zdroje
    • Zamestnanci
    • Nábor zamestnancov
    • Voľné dni
    • Hodnotenia
    • Odporúčania
    • Vozový park
    Marketing
    • Marketing sociálnych sietí
    • Email marketing
    • SMS marketing
    • Eventy
    • Marketingová automatizácia
    • Prieskumy
    Služby
    • Projektové riadenie
    • Pracovné výkazy
    • Práca v teréne
    • Helpdesk
    • Plánovanie
    • Schôdzky
    Produktivita
    • Tímová komunikácia
    • Schvalovania
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Managament
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Výroba
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware and Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Komunita
    Vzdelávanie
    • Tutoriály
    • Dokumentácia
    • Certifikácie
    • Školenie
    • Blog
    • Podcast
    Empower Education
    • Vzdelávací program
    • Scale Up! Business Game
    • Visit Odoo
    Softvér
    • Stiahnuť
    • Porovnanie Community a Enterprise vierzie
    • Releases
    Spolupráca
    • Github
    • Fórum
    • Eventy
    • Preklady
    • Staň sa partnerom
    • Services for Partners
    • Register your Accounting Firm
    Služby
    • Nájdite partnera
    • Nájdite účtovníka
    • Meet an advisor
    • Implementation Services
    • Zákaznícke referencie
    • Podpora
    • Upgrades
    ​Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Získajte demo
  • Cenník
  • Help

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

  • CRM
  • e-Commerce
  • Účtovníctvo
  • Sklady
  • PoS
  • Projektové riadenie
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
Pomoc

How to generate a report from a wizard?

Odoberať

Get notified when there's activity on this post

This question has been flagged
wizardreportingreport
1 Odpoveď
33096 Zobrazenia
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
Zrušiť
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
Best Answer

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
Zrušiť
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.

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Registrácia
Related Posts Replies Zobrazenia Aktivita
Generate PDF Report From Wizard
accounting wizard reporting report
Avatar
Avatar
Avatar
2
júl 23
7922
Change PDF report name on wizard
wizard report
Avatar
Avatar
2
júl 24
4100
Chaning the Reportname
reporting report
Avatar
Avatar
1
júl 24
2115
Blank report PDF from Wizard Solved
wizard report
Avatar
Avatar
2
apr 24
3629
External ID not found in the system
wizard report
Avatar
4
okt 20
6551
Komunita
  • Tutoriály
  • Dokumentácia
  • Fórum
Open Source
  • Stiahnuť
  • Github
  • Runbot
  • Preklady
Služby
  • Odoo.sh hosting
  • Podpora
  • Vyššia verzia
  • Custom Developments
  • Vzdelávanie
  • Nájdite účtovníka
  • Nájdite partnera
  • Staň sa partnerom
O nás
  • Naša spoločnosť
  • Majetok značky
  • Kontaktujte nás
  • Pracovné ponuky
  • Eventy
  • Podcast
  • Blog
  • Zákazníci
  • Právne dokumenty • Súkromie
  • Bezpečnosť
الْعَرَبيّة 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 je sada podnikových aplikácií s otvoreným zdrojovým kódom, ktoré pokrývajú všetky potreby vašej spoločnosti: CRM, e-shop, účtovníctvo, skladové hospodárstvo, miesto predaja, projektový manažment atď.

Odoo prináša vysokú pridanú hodnotu v jednoduchom použití a súčasne plne integrovanými biznis aplikáciami.

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