Passa al contenuto
Odoo Menu
  • Accedi
  • Provalo gratis
  • App
    Finanze
    • Contabilità
    • Fatturazione
    • Note spese
    • Fogli di calcolo (BI)
    • Documenti
    • Firma
    Vendite
    • CRM
    • Vendite
    • Punto vendita Negozio
    • Punto vendita Ristorante
    • Abbonamenti
    • Noleggi
    Siti web
    • Configuratore sito web
    • E-commerce
    • Blog
    • Forum
    • Live chat
    • E-learning
    Supply chain
    • Magazzino
    • Produzione
    • PLM
    • Acquisti
    • Manutenzione
    • Qualità
    Risorse umane
    • Dipendenti
    • Assunzioni
    • Ferie
    • Valutazioni
    • Referral dipendenti
    • Parco veicoli
    Marketing
    • Social marketing
    • E-mail marketing
    • SMS marketing
    • Eventi
    • Marketing automation
    • Sondaggi
    Servizi
    • Progetti
    • Fogli ore
    • Assistenza sul campo
    • Helpdesk
    • Pianificazione
    • Appuntamenti
    Produttività
    • Comunicazioni
    • Approvazioni
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    App di terze parti Odoo Studio Piattaforma cloud Odoo
  • Settori
    Retail
    • Libreria
    • Negozio di abbigliamento
    • Negozio di arredamento
    • Alimentari
    • Ferramenta
    • Negozio di giocattoli
    Cibo e ospitalità
    • Bar e pub
    • Ristorante
    • Fast food
    • Pensione
    • Grossista di bevande
    • Hotel
    Agenzia immobiliare
    • Agenzia immobiliare
    • Studio di architettura
    • Edilizia
    • Gestione immobiliare
    • Impresa di giardinaggio
    • Associazione di proprietari immobiliari
    Consulenza
    • Società di contabilità
    • Partner Odoo
    • Agenzia di marketing
    • Studio legale
    • Selezione del personale
    • Audit e certificazione
    Produzione
    • Tessile
    • Metallo
    • Arredamenti
    • Alimentare
    • Birrificio
    • Ditta di regalistica aziendale
    Benessere e sport
    • Club sportivo
    • Negozio di ottica
    • Centro fitness
    • Centro benessere
    • Farmacia
    • Parrucchiere
    Commercio
    • Tuttofare
    • Hardware e assistenza IT
    • Ditta di installazione di pannelli solari
    • Calzolaio
    • Servizi di pulizia
    • Servizi di climatizzazione
    Altro
    • Organizzazione non profit
    • Ente per la tutela ambientale
    • Agenzia di cartellonistica pubblicitaria
    • Studio fotografico
    • Punto noleggio di biciclette
    • Rivenditore di software
    Carica tutti i settori
  • Community
    Apprendimento
    • Tutorial
    • Documentazione
    • Certificazioni 
    • Formazione
    • Blog
    • Podcast
    Potenzia la tua formazione
    • Programma educativo
    • Scale Up! Business Game
    • Visita Odoo
    Ottieni il software
    • Scarica
    • Versioni a confronto
    • Note di versione
    Collabora
    • Github
    • Forum
    • Eventi
    • Traduzioni
    • Diventa nostro partner
    • Servizi per partner
    • Registra la tua società di contabilità
    Ottieni servizi
    • Trova un partner
    • Trova un contabile
    • Incontra un esperto
    • Servizi di implementazione
    • Testimonianze dei clienti
    • Supporto
    • Aggiornamenti
    GitHub Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Richiedi una demo
  • Prezzi
  • Aiuto

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

  • CRM
  • e-Commerce
  • Contabilità
  • Magazzino
  • PoS
  • Progetti
  • MRP
All apps
È necessario essere registrati per interagire con la community.
Tutti gli articoli Persone Badge
Etichette (Mostra tutto)
odoo accounting v14 pos v15
Sul forum
È necessario essere registrati per interagire con la community.
Tutti gli articoli Persone Badge
Etichette (Mostra tutto)
odoo accounting v14 pos v15
Sul forum
Assistenza

PDF Export Option for QWeb Reports in odoo 17.0

Iscriviti

Ricevi una notifica quando c'è un'attività per questo post

La domanda è stata contrassegnata
qweb
1 Rispondi
3718 Visualizzazioni
Avatar
Tenth Planet

Hi Team,


We want to export normal qweb reports into PDF format.  We are using Odoo 17.0 community edition.  Is there any default feature or app available to enable this option.

Currently there is option to export into excel?  Also is there option to download into csv format.

Provide your inputs please.


Regards
Odoo@tenthplanet

0
Avatar
Abbandona
Avatar
Shaikh Arshan
Risposta migliore

PART 1: Export QWeb Reports to PDF in Odoo 17 Community


Step-by-Step to Export QWeb Reports to PDF

Precondition: You need to have the report action and QWeb template properly defined in your custom module.


Step 1: Define QWeb Template

In your custom module:

<template id="report_example_template">
    <t t-call="web.html_container">
        <t t-foreach="docs" t-as="doc">
            <div class="page">
                <h2>Report for <t t-esc="doc.name"/></h2>
                <p>Created on: <t t-esc="doc.create_date"/></p>
            </div>
        </t>
    </t>
</template>

Step 2: Define Report Action

<report
    id="action_report_example"
    model="your.model.name"
    string="Example Report"
    report_type="qweb-pdf"
    name="your_module.report_example_template"
    file="your_module.report_example_template"
    print_report_name="'Example Report - %s' % (object.name)"
/>


PART 2: Export to Excel and CSV in Odoo 17 Community

Step-by-Step to Export Data to Excel or CSV

Export to CSV (Built-in)

CSV export is available by default:

  1. Go to any List View (e.g., Sales Orders, Products).
  2. Select one or more records (checkbox).
  3. Click Action > Export.
  4. Choose fields to export.
  5. Choose format: CSV (default).
  6. Click Export.


Solution: Use a Free Community Module like export_xlsx

  1. Go to https://apps.odoo.com
  2. Search for: “Export XLSX” or report_xlsx module.
  3. Choose one compatible with Odoo 17 (check version).
  4. Install the module in your custom addons directory.
  5. Restart Odoo and update the apps list.
  6. Now, go to List View > Action > Export, and you'll have the XLSX format option.

Note: Ensure you have Python's xlsxwriter library installed (pip install XlsxWriter), as some modules require it.


Thanks & Regards,

Contact :-  DataInteger Consultancy Services LLP

1
Avatar
Abbandona
Ti stai godendo la conversazione? Non leggere soltanto, partecipa anche tu!

Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!

Registrati
Post correlati Risposte Visualizzazioni Attività
Odoo 18: Display image from char field containing url in qweb form
qweb
Avatar
Avatar
1
lug 25
2956
QWeb: use t-if to check birthday date Risolto
qweb
Avatar
Avatar
1
apr 25
3231
Odoo 17 - QWeb Reports with External Datasource Risolto
qweb
Avatar
Avatar
1
feb 25
2590
Tree line field shrinked/cut
qweb
Avatar
0
ott 24
2154
check if html.field is empty on Qweb report Risolto
qweb
Avatar
Avatar
Avatar
Avatar
Avatar
7
set 24
27147
Community
  • Tutorial
  • Documentazione
  • Forum
Open source
  • Scarica
  • Github
  • Runbot
  • Traduzioni
Servizi
  • Hosting Odoo.sh
  • Supporto
  • Aggiornamenti
  • Sviluppi personalizzati
  • Formazione
  • Trova un contabile
  • Trova un partner
  • Diventa nostro partner
Chi siamo
  • La nostra azienda
  • Branding
  • Contattaci
  • Lavora con noi
  • Eventi
  • Podcast
  • Blog
  • Clienti
  • Note legali • Privacy
  • Sicurezza
الْعَرَبيّة 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 è un gestionale di applicazioni aziendali open source pensato per coprire tutte le esigenze della tua azienda: CRM, Vendite, E-commerce, Magazzino, Produzione, Fatturazione elettronica, Project Management e molto altro.

Il punto di forza di Odoo è quello di offrire un ecosistema unico di app facili da usare, intuitive e completamente integrate tra loro.

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