Zum Inhalt springen
Odoo Menü
  • Anmelden
  • Jetzt gratis testen
  • Apps
    Finanzen
    • Buchhaltung
    • Rechnungsstellung
    • Spesenabrechnung
    • Tabellenkalkulation (BI)
    • Dokumente
    • E-Signatur
    Vertrieb
    • CRM
    • Vertrieb
    • Kassensystem – Shop
    • Kassensystem – Restaurant
    • Abonnements
    • Vermietung
    Websites
    • Website-Builder
    • E-Commerce
    • Blog
    • Forum
    • Livechat
    • E-Learning
    Lieferkette
    • Lager
    • Fertigung
    • PLM
    • Einkauf
    • Wartung
    • Qualität
    Personalwesen
    • Mitarbeiter
    • Personalbeschaffung
    • Abwesenheiten
    • Mitarbeiterbeurteilung
    • Personalempfehlungen
    • Fuhrpark
    Marketing
    • Social Marketing
    • E-Mail-Marketing
    • SMS-Marketing
    • Veranstaltungen
    • Marketing-Automatisierung
    • Umfragen
    Dienstleistungen
    • Projekte
    • Zeiterfassung
    • Außendienst
    • Kundendienst
    • Planung
    • Termine
    Produktivität
    • Dialog
    • Genehmigungen
    • IoT
    • VoIP
    • Wissensdatenbank
    • WhatsApp
    Apps von Drittanbietern Odoo Studio Odoo Cloud-Plattform
  • Branchen
    Einzelhandel
    • Buchladen
    • Kleidergeschäft
    • Möbelhaus
    • Lebensmittelgeschäft
    • Baumarkt
    • Spielwarengeschäft
    Essen & Gastgewerbe
    • Bar und Kneipe
    • Restaurant
    • Fast Food
    • Gästehaus
    • Getränkehändler
    • Hotel
    Immobilien
    • Immobilienagentur
    • Architekturbüro
    • Baugewerbe
    • Immobilienverwaltung
    • Gartenarbeit
    • Eigentümervereinigung
    Beratung
    • Buchhaltungsfirma
    • Odoo-Partner
    • Marketingagentur
    • Anwaltskanzlei
    • Talentakquise
    • Prüfung & Zertifizierung
    Fertigung
    • Textil
    • Metall
    • Möbel
    • Speisen
    • Brauerei
    • Firmengeschenke
    Gesundheit & Fitness
    • Sportklub
    • Brillengeschäft
    • Fitnessstudio
    • Therapeut
    • Apotheke
    • Friseursalon
    Handel
    • Handyman
    • IT-Hardware & -Support
    • Solarenergiesysteme
    • Schuster
    • Reinigungsdienstleistungen
    • HLK-Dienstleistungen
    Sonstiges
    • Gemeinnützige Organisation
    • Umweltschutzagentur
    • Plakatwandvermietung
    • Fotostudio
    • Fahrrad-Leasing
    • Software-Händler
    Alle Branchen ansehen
  • Community
    Lernen
    • Tutorials
    • Dokumentation
    • Zertifizierungen
    • Schulung
    • Blog
    • Podcast
    Bildung fördern
    • Bildungsprogramm
    • Scale-Up! Planspiel
    • Odoo besuchen
    Software anfragen
    • Herunterladen
    • Editionen vergleichen
    • Releases
    Zusammenarbeiten
    • Github
    • Forum
    • Veranstaltungen
    • Übersetzungen
    • Partner werden
    • Dienstleistungen für Partner
    • Buchhaltungsfirma registrieren
    Services anfragen
    • Partner finden
    • Buchhalter finden
    • Einen Experten treffen
    • Implementierungsservices
    • Kundenreferenzen
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Eine Demo erhalten
  • Preiskalkulation
  • Hilfe

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

  • CRM
  • e-Commerce
  • Buchhaltung
  • Lager
  • PoS
  • Projekte
  • MRP
All apps
Sie müssen registriert sein, um mit der Community zu interagieren.
Alle Beiträge Personen Abzeichen
Stichwörter (Alle anzeigen)
odoo accounting v14 pos v15
Über dieses Forum
Sie müssen registriert sein, um mit der Community zu interagieren.
Alle Beiträge Personen Abzeichen
Stichwörter (Alle anzeigen)
odoo accounting v14 pos v15
Über dieses Forum
Hilfe

How to create pdf report from website frontend?

Abonnieren

Erhalten Sie eine Benachrichtigung, wenn es eine Aktivität zu diesem Beitrag gibt

Diese Frage wurde gekennzeichnet
pdfformreportingwebsitev14
2 Antworten
7995 Ansichten
Avatar
Tri Nanda

I using Odoo14,

I have a form for student course registration,which is the form is accesible from public (no login require).


When a user register on the form, I want to have an option, there are a button to print a pdf report from their filled data by themself.


So, how to create pdf report from website frontend?


please , any help, source or tutorial how to do that will be very thanks,


Thanks,

Tri Nanda

0
Avatar
Verwerfen
Avatar
Tri Nanda
Autor Beste Antwort

I solved this by using this code:

my controller code

@http.route('/create/course-registration', type="http", auth="public", website=True)
def create_course_registration(self, **kw):
my_other_code...
my_other_ocde...
student_course = request.env['aqur.student.course'].sudo().create(
{'student_id': student_id.id, 'course_id': kw['course_id'], 'course_category_id': kw['course_category_id'],
'requisition_schedule_id': requisition_schedule_id})
return request.render('aqur_core.student_registration_thanks', {'student_course': student_course})


and here is my website template view:









(sorry if  I  screenshot the code above,when I paste my code in this forum it always disapear when I submit answer.

But I got the other problem now, the user must do login to access the pdf,

Is there a way to access or download the pdf with public user that don't require to login?

Please, any help, source or tutorial how to do that will be very thanks,

Thanks,

Tri Nanda


0
Avatar
Verwerfen
Avatar
Niyas Raphy (Walnut Software Solutions)
Beste Antwort

Hi,
 I hope once the form is filled, you will be recording data in the backend model/table, define a report for that model, and from the website you can call/print that report.

For  printing  from  website,  see this  answer :   How to print/Download report from website ?


Thanks

1
Avatar
Verwerfen
Tri Nanda
Autor

Hi @Niyas, thank you for the answer,
Yes Niyas, when the form is filled and submited, it will record the data in the backend table/module.

Thank you for the reference answer Niyas,
but Niyas Sory, am still confused in where should I do start to write the code, do you have reference how to do that from stratch Niyas?, or step by step on how to do that?

Thanks,
Tri Nanda

Niyas Raphy (Walnut Software Solutions)

for creating report in backend see: https://www.youtube.com/watch?v=pIevsbkoq-E

Tri Nanda
Autor

Hi @Niyas, I can print the report now from my backend, thank you very much for the tutorial Niyas. I also can print report now from a button that call python function using your tutorial here: # https://www.youtube.com/watch?v=Dc8GDj7ygsI&list=PLqRRLx0cl0hoJhjFWkFYowveq2Zn55dhM&index=67

Now I confuse, how to call the function from Odoo website frontend Niyas.
may you refer me a code, source or tutorial how to do that Niyas, please?
Thanks,
Tri Nanda

Tri Nanda
Autor

@Hi Niyas, I solved this problem now, thank you for your tutorial reference. But I got other problem now, my user must do a login to access the pdf,

is there a way how access the pdf from public user thah doesn't require to login?

Thanks,
Tri Nanda

Diskutieren Sie gerne? Treten Sie bei, statt nur zu lesen!

Erstellen Sie heute ein Konto, um exklusive Funktionen zu nutzen und mit unserer tollen Community zu interagieren!

Registrieren
Verknüpfte Beiträge Antworten Ansichten Aktivität
How to create multi step website forms?
form controllers website v14
Avatar
Avatar
Avatar
2
Feb. 24
6531
Change color of table td odoo14
pdf reporting report v14
Avatar
Avatar
1
Apr. 23
2536
How to assign a url to a download button on odoo website(v11) Gelöst
purchase pdf reporting url website
Avatar
Avatar
1
Aug. 22
7091
(Odoo v11) Print button on website to print the report in pdf. Gelöst
pdf reporting v11 website odoo
Avatar
Avatar
Avatar
7
Jan. 20
10778
website form
form website
Avatar
Avatar
Avatar
2
Mai 25
10678
Community
  • Tutorials
  • Dokumentation
  • Forum
Open Source
  • Herunterladen
  • Github
  • Runbot
  • Übersetzungen
Dienstleistungen
  • Odoo.sh-Hosting
  • Support
  • Upgrade
  • Individuelle Entwicklungen
  • Bildung
  • Buchhalter finden
  • Partner finden
  • Partner werden
Über uns
  • Unsere Firma
  • Markenwerte
  • Kontakt
  • Karriere
  • Veranstaltungen
  • Podcast
  • Blog
  • Kunden
  • Rechtliches • Datenschutz
  • Sicherheit
الْعَرَبيّة 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 ist eine Suite von Open-Source-Betriebsanwendungen, die alle Bedürfnisse Ihres Unternehmens abdecken: CRM, E-Commerce, Buchhaltung, Lager, Kassensystem, Projektmanagement etc.

Das einzigartige Wertversprechen von Odoo ist, dass es gleichzeitig sehr einfach zu bedienen und voll integriert ist.

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