How To Create PDF Report in Odoo

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 ก.พ. 2025

ความคิดเห็น • 125

  • @kenwoychesko2163
    @kenwoychesko2163 3 ปีที่แล้ว +1

    Another great tutorial! I really appreciate that you show the troubleshooting steps you take. Helps a lot! Thank you for doing these!!!

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว +1

      Glad to help and thanks for the support

  • @muzamilanwer7603
    @muzamilanwer7603 4 ปีที่แล้ว +7

    if anybody having issue on wkhtmltopdf
    then open terminal on ubuntu
    and just write
    sudo apt-get install wkhtmltopdf

    • @OdooMates
      @OdooMates  4 ปีที่แล้ว

      thanks for the sharing and helping mentality

    • @saayoo3479
      @saayoo3479 4 ปีที่แล้ว

      thank for saving my life mann

  • @supreetlaghate22
    @supreetlaghate22 4 ปีที่แล้ว +4

    Hello. Can you make a tutorial on setting up new template including header, footer inserting image in report and using template conditions like t-foreach, t-as, t-esc, t-if, t-attr-src, etc etc.

  • @mudassarali9582
    @mudassarali9582 4 ปีที่แล้ว +2

    i was getting empty pdf file after downloading so i made one line change in patient_card.xml file.
    i change the to this
    and it works fine for now but i don't know it will make any problem in future...
    mate would you please help me by define there usage

  • @HusseinAliDev
    @HusseinAliDev 2 ปีที่แล้ว +1

    You are a Great teacher I learned a lot from you. You made a prefect list for development odoo.
    I did everything with you but the Print Button NOT appears to me
    I using Odoo 15
    May you please help me ?

    • @OdooMates
      @OdooMates  2 ปีที่แล้ว

      Thanks for the support, does it solved ?

    • @HusseinAliDev
      @HusseinAliDev 2 ปีที่แล้ว

      @@OdooMates No, it not solved yet

    • @OdooMates
      @OdooMates  2 ปีที่แล้ว

      Does the report get added in the db ?

    • @HusseinAliDev
      @HusseinAliDev 2 ปีที่แล้ว

      @@OdooMates I am not sure. But I think no

    • @OdooMates
      @OdooMates  2 ปีที่แล้ว

      @@HusseinAliDev can you confirm it by checking the reports menu

  • @msob8272
    @msob8272 5 ปีที่แล้ว +1

    great job man...keep it up .

  • @ansumaryjacob6835
    @ansumaryjacob6835 3 ปีที่แล้ว +1

    Is there any video available for creating xlsx report with Wizard ?

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว +1

      Not yet, but we will be adding it soon under odoo 14 list

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว

      See: th-cam.com/video/u7frpEWdrNc/w-d-xo.html

  • @henintsoaarielratolojanaha754
    @henintsoaarielratolojanaha754 2 ปีที่แล้ว

    Great lesson :) How can we get in a same report some page with portrait orientation and some other page in landscape orientation?

  • @charlesdonboscoa4041
    @charlesdonboscoa4041 4 ปีที่แล้ว

    Hi I have a doubt in report, For xml design we can put like
    What is inside docs how we can print or know about that value Sir

  • @hardeepchhabra450
    @hardeepchhabra450 5 ปีที่แล้ว +1

    I am your well wisher and your videos always and always help me in some or the other way. Can you please make a video on jQuery and how to implement jQuery in odoo?

    • @OdooMates
      @OdooMates  5 ปีที่แล้ว +2

      We will add it in the list ..

    • @hardeepchhabra450
      @hardeepchhabra450 5 ปีที่แล้ว

      @@OdooMates thank you so much. That will be very generous and helpful

  • @marksuuuu
    @marksuuuu 2 ปีที่แล้ว

    Hello , I watch your tutorial and It helps me a lot but can I ask if I can print together how can I print the data with in that 'APPOINTMENTS' widget? .. Thank you , that's is my problema right now and I'm working on it

    • @OdooMates
      @OdooMates  2 ปีที่แล้ว

      using one2many field or using the search method you can fetch the data.
      odoo search: th-cam.com/video/tIaIixa3oAs/w-d-xo.html

  • @weixiangng8279
    @weixiangng8279 2 หลายเดือนก่อน

    Mine can download the printed reports but when try to view them it does not load. Why ya? I am using Odoo v11.

  • @techsolutions102
    @techsolutions102 4 ปีที่แล้ว +1

    Greate tutorial But i need some help in header pdf report please share any video in which use custom header without default header How to develop custom header ?

    • @OdooMates
      @OdooMates  4 ปีที่แล้ว

      yet we haven't created a video on it, if its urgent for you, you can check how the internal_layout and external layout is created, by following the same you can add layout for your report

    • @techsolutions102
      @techsolutions102 4 ปีที่แล้ว

      @@OdooMates okay thanks

  • @abdouelnemr7459
    @abdouelnemr7459 4 ปีที่แล้ว

    hello , i want to add custom css file to my report with

    after the tag but the css file doesnt loaded in log and does not affect the report design

  • @rishalchand6935
    @rishalchand6935 3 ปีที่แล้ว +1

    Hello Odoo Mates. I have a query. Just like print button is available in form view, how can i get print button in my Tree View. Need help here.

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว +1

      when you add in form, it is not coming in the tree ?

    • @rishalchand6935
      @rishalchand6935 3 ปีที่แล้ว +1

      @@OdooMates If I need print button in tree view, how can I achieve this?

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว +1

      @@rishalchand6935 which version you are using ?

    • @rishalchand6935
      @rishalchand6935 3 ปีที่แล้ว +1

      @@OdooMates I am using V13

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว

      @@rishalchand6935 from v14, there is options to add buttons in tree header.
      For reports, you can get it from actions button after selecting the records from tree view in odoo 13

  • @shujjatshirafat
    @shujjatshirafat 5 หลายเดือนก่อน

    I have exactly followed these steps. But the report is not showing up nor the print button. It is odoo 17. Anything else that I need to do? I am using another module but the steps executed are same.

  • @vanrock6754
    @vanrock6754 3 ปีที่แล้ว +1

    reports don't generate properly, i'm recieving a huge error from the qweb

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว +1

      can you check and share relevant part of error message

    • @vanrock6754
      @vanrock6754 3 ปีที่แล้ว +1

      @@OdooMates Thank you for answering! good things for you!

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว

      @@vanrock6754

    • @vanrock6754
      @vanrock6754 3 ปีที่แล้ว

      i can't show you the error, but is like qweb telling me that something is wrong

    • @vanrock6754
      @vanrock6754 3 ปีที่แล้ว

      e 2, in body_call_content_411
      File \"\", line 3, in foreach_410

  • @arypage5962
    @arypage5962 4 ปีที่แล้ว

    hello, sir thankyou for this turorial, can you create explain for button custumer preview in sale order, now i'm learn about that, thankyou

  • @ephanitor6741
    @ephanitor6741 4 ปีที่แล้ว

    I have followed the tutorial to add a new report to stock.picking. But when I click the button it says "lxml.etree.ParserError: Document is empty". Before I used exact same code with inheritance and it worked fine. But when I create custom button in print it does not work. Any suggestions?

  • @tessnimzrayga6904
    @tessnimzrayga6904 3 ปีที่แล้ว +1

    Hello, can you show us how to put an image in the background of the report? Thank you.

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว

      There is an oca module providing this functionality

    • @tessnimzrayga6904
      @tessnimzrayga6904 3 ปีที่แล้ว

      @@OdooMates I can't seem to find it. Can you share the link please? Thank you.

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว

      apps.odoo.com/apps/modules/13.0/reports_with_watermark/

    • @tessnimzrayga6904
      @tessnimzrayga6904 3 ปีที่แล้ว +1

      @@OdooMates Thank you but this isn't what I want, I need it to be fully clear not a watermark, and in a specific report.

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว

      @@tessnimzrayga6904 the approach seems wrong, better you design the layout using the qweb

  • @PARVATHYMENONKS
    @PARVATHYMENONKS ปีที่แล้ว

    Can you explain Steps to create py3o report? thanks in advance

  • @SyedUsman
    @SyedUsman 3 ปีที่แล้ว +1

    can i create these in odoo online version using developer mode?

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว

      yes possible, as we create from code, you can create it from developer mode, from the report menu

    • @SyedUsman
      @SyedUsman 3 ปีที่แล้ว +1

      @@OdooMates I have done the same but cannot get it to work getting error template ID not found.

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว

      @@SyedUsman see from where this template is calling, and then just ensure such a template exists in db

    • @SyedUsman
      @SyedUsman 3 ปีที่แล้ว +1

      @@OdooMates i am using odoo cloud not sh . When i create a new view. The external id is blanked out . So that's y the error is coming. Unable to solve it

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว

      You can generate external id by just exporting the record

  • @ashwinstephen7292
    @ashwinstephen7292 3 ปีที่แล้ว +1

    Hi, header in pdf not displayed in odoo 10. Even though I inherited the base layout. Any solution?

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว

      is the existing reports like sale order, purchase order is coming correctly or not ?

  • @henrypcs6324
    @henrypcs6324 4 ปีที่แล้ว +1

    hai, i want to ask you, i use your guide step by step, but when i want to print the page it say "Unable to find Wkhtmltopdf on this system. The report will be shown in html.", by the way i am using windows 10, already install the wkhtmltopdf but still got this message

    • @OdooMates
      @OdooMates  4 ปีที่แล้ว

      Might be installed in different Python version ? Also try setting bin path in Odoo configuration file

  • @mudassarali9582
    @mudassarali9582 4 ปีที่แล้ว

    when i am downloading the card its downloaded directly and this an empty doc while i am using header tag .. then i have change the report_type ="html" its giving me error
    "Wrong value for ir.actions.report.report_type: 'html'"

  • @abduljabbar8383
    @abduljabbar8383 3 ปีที่แล้ว +1

    Odoo Mates, I want to sum and count values and pass to pdf report can you help me?

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว

      you can calculate it from the xml template itself or you can pass it from python to report

    • @abduljabbar8383
      @abduljabbar8383 3 ปีที่แล้ว

      @@OdooMates i want to use groupby function in search_count function can you help me in this? thanks

  • @khoevan3261
    @khoevan3261 3 ปีที่แล้ว +1

    when i export the pdf file it shows no data and i don't get any error message any good way to fix it. Thank you

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว

      did you compare the code with code in this module ? apps.odoo.com/apps/modules/14.0/om_hospital/

  • @charlesdonboscoa4041
    @charlesdonboscoa4041 4 ปีที่แล้ว +1

    Hi sir, suppose I print list view select all pdf report and print,It will printed sequencely, But I want one report printed another report print new page, How can I done that sir

    • @OdooMates
      @OdooMates  4 ปีที่แล้ว

      in each report template give div="page"

    • @charlesdonboscoa4041
      @charlesdonboscoa4041 4 ปีที่แล้ว +1

      @@OdooMates Thank you sir

    • @OdooMates
      @OdooMates  4 ปีที่แล้ว

      @@charlesdonboscoa4041 :)

  • @juancarlosortega7278
    @juancarlosortega7278 3 ปีที่แล้ว +1

    Thanksssss

  • @hasyou9006
    @hasyou9006 4 ปีที่แล้ว +1

    Hello Sir
    Thank you so mush for this great tutorial , can i ask if we can print a field from another model with hospital.patient ?
    Exemple : I would like to add address from res.partner with hospital.patient
    Thank you

    • @OdooMates
      @OdooMates  4 ปีที่แล้ว +1

      In different ways we can achieve it

    • @OdooMates
      @OdooMates  4 ปีที่แล้ว +1

      If you check the playlist named Odoo qweb PDF tutorials u will get more idea about same, there is a video about how to call Python function while printing report,
      Can you please check it and see whether it is helpful or not

    • @lakshmisaj438
      @lakshmisaj438 4 ปีที่แล้ว

      same can be done with inheritance?

  • @clai1087
    @clai1087 8 หลายเดือนก่อน

    web_external_layout dont show in my module what its showed in the video i talk about header that show, your logo, your company, 1725 slaough ave, scranton 18540, pensilvania pA , etc...

  • @bryanjadeloplop6376
    @bryanjadeloplop6376 5 ปีที่แล้ว +1

    i followed the steps, there's an error after clicking the report button, "report (

    • @OdooMates
      @OdooMates  5 ปีที่แล้ว

      which version you are using ?

    • @bryanjadeloplop6376
      @bryanjadeloplop6376 5 ปีที่แล้ว

      @@OdooMates Thank you for responding on my inquiry. It's odoo10, but I actually got it afte i Installed report module. after solving that problem another problem arise, : External ID not found on syste : web.external_layout. :(

  • @neilsenarnachellum166
    @neilsenarnachellum166 5 ปีที่แล้ว +1

    Hello I'm encountering a problem when clicked on print to print report. it says 'ValueError: External ID not found in the system: ......' can someone help plz?

    • @OdooMates
      @OdooMates  5 ปีที่แล้ว

      make sure that the files are given in proper order in manifest file

  • @AdeshPaul
    @AdeshPaul 4 ปีที่แล้ว +1

    Thanks.

    • @OdooMates
      @OdooMates  4 ปีที่แล้ว

      Welcome bro :)

  • @rohailqamar8930
    @rohailqamar8930 3 ปีที่แล้ว +1

    Pdf reports are generating blank in odoo 14 windows 10. Need help.

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว

      default reports or customized reports ?

  • @JennRM
    @JennRM 4 ปีที่แล้ว

    please help i need to print invoice with external_layout_clean and budgets with external_layout_backgroung, i have already created a module but my xml report is not working for me

  • @vickysmart9292
    @vickysmart9292 3 ปีที่แล้ว

    if i want a html view means can i use qweb-html instead of qweb-pdf the remaining are same?

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว

      Will this help ? th-cam.com/video/ikZa8GqgqaU/w-d-xo.html

    • @vickysmart9292
      @vickysmart9292 3 ปีที่แล้ว

      @@OdooMates saw the video but how to do it by code

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว

      @@vickysmart9292 inside the report tag, where we set the report as qweb-pdf, you can set it as qweb-html

  • @madhavansrinivasan6441
    @madhavansrinivasan6441 2 ปีที่แล้ว +1

    Hi, anyone of you aware, how to fix table header overlapping, if the text content have more than one page, in odoo qweb reports?

    • @OdooMates
      @OdooMates  2 ปีที่แล้ว

      try adjusting the header spacing in paper format

    • @madhavansrinivasan6441
      @madhavansrinivasan6441 2 ปีที่แล้ว

      @@OdooMates I asked for table header overlap not for header

    • @OdooMates
      @OdooMates  2 ปีที่แล้ว

      @@madhavansrinivasan6441 we still recommend you to try the same and see if works, have a good day

  • @imahcupangchannel8839
    @imahcupangchannel8839 3 ปีที่แล้ว

    hello, i finished the code same with you. but when i downloaded the PDF, the file corrupt.
    I am using Odoo 11 on Ubuntu 16.04. Can you help me ? Thank you

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว

      can you comment some part of the qweb template and trace which part is creating the issue ?

  • @mahmoudarouri6537
    @mahmoudarouri6537 3 ปีที่แล้ว +1

    my problem : the report is printed but empty. Any help please

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว

      can you show us the code that you have added

    • @mahmoudarouri6537
      @mahmoudarouri6537 3 ปีที่แล้ว

      Report title

  • @animalia.shorts
    @animalia.shorts 5 ปีที่แล้ว

    Sir, can i use crystal report instead of qweb report?? Plz ans.

    • @OdooMates
      @OdooMates  5 ปีที่แล้ว

      We are not sure whether it can be done or not, as we haven't tried it yet. Have a look at the thread in odoo forum or ask a new question there.

    • @obehobeh9984
      @obehobeh9984 5 ปีที่แล้ว

      My personal opinion
      Crystal Report is a great thing. But to use it in Odoo, metadata needs to be prepared. This can be solved if you know which tables belong to which data.
      For those who have worked with Crystal Report, reporting in Odoo looks quite specific and cumbersome

    • @OdooMates
      @OdooMates  5 ปีที่แล้ว

      @@obehobeh9984 English please

    • @bahaagorashi2371
      @bahaagorashi2371 5 ปีที่แล้ว +1

      you can used jaspar report with odoo instead of crystal

    • @animalia.shorts
      @animalia.shorts 5 ปีที่แล้ว

      @@bahaagorashi2371 but how?? Can u suggest me any link??

  • @bossmohammed2017
    @bossmohammed2017 4 ปีที่แล้ว

    Hello Sir. Your tutorial is as usual, very interesting and helpful. I have encountered some errors while following the tutorial. I have sent you an email with all the details. Please let me know of the solution. Thank you

    • @OdooMates
      @OdooMates  4 ปีที่แล้ว

      We have replied you. It is the issue with the wkhtmltpdf package, you have to install the python packages specified in the reply email

  • @sahilmansuri1639
    @sahilmansuri1639 5 ปีที่แล้ว

    great tutorial!! when i open patient card it download automatically ...please give me solution. how can i just show it?

    • @OdooMates
      @OdooMates  5 ปีที่แล้ว

      You can change the report type to html

  • @SyedZainUlHasan
    @SyedZainUlHasan 3 ปีที่แล้ว +1

    Hello, How can I insert chats in pdf?

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว

      you can get chats from the database (table: mail.message) and render it in pdf

    • @SyedZainUlHasan
      @SyedZainUlHasan 3 ปีที่แล้ว

      @@OdooMates any example?

  • @anjum.p2645
    @anjum.p2645 4 ปีที่แล้ว +1

    How to bring graphs in pdf report. Pls help

  • @md.shamsuddohashakib3521
    @md.shamsuddohashakib3521 3 ปีที่แล้ว

    ValueError: External ID not found in the system: web.html_container
    load could not load template
    Template: web.html_container

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว

      which odoo version ?

    • @alishanadrees8457
      @alishanadrees8457 ปีที่แล้ว

      @@OdooMates 13
      same error
      ValueError: External ID not found in the system: om_hospital.report_patient