How To Create PDF Report in Odoo

Поделиться
HTML-код
  • Опубликовано: 20 окт 2024

Комментарии • 126

  • @kenwoychesko2163
    @kenwoychesko2163 2 года назад +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  2 года назад +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 3 года назад

      thank for saving my life mann

  • @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

  • @supreetlaghate22
    @supreetlaghate22 3 года назад +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.

  • @shujjatshirafat
    @shujjatshirafat 2 месяца назад

    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.

  • @charlesdonboscoa4041
    @charlesdonboscoa4041 3 года назад

    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

  • @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: ruclips.net/video/u7frpEWdrNc/видео.html

  • @abdouelnemr7459
    @abdouelnemr7459 3 года назад

    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

  • @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?

  • @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

  • @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: ruclips.net/video/tIaIixa3oAs/видео.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?

  • @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

  • @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 ?

  • @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

  • @khoevan3261
    @khoevan3261 2 года назад +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  2 года назад

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

  • @msob8272
    @msob8272 5 лет назад +1

    great job man...keep it up .

  • @vanrock6754
    @vanrock6754 2 года назад +1

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

    • @OdooMates
      @OdooMates  2 года назад +1

      can you check and share relevant part of error message

    • @vanrock6754
      @vanrock6754 2 года назад +1

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

    • @OdooMates
      @OdooMates  2 года назад

      @@vanrock6754

    • @vanrock6754
      @vanrock6754 2 года назад

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

    • @vanrock6754
      @vanrock6754 2 года назад

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

  • @SyedUsman
    @SyedUsman 2 года назад +1

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

    • @OdooMates
      @OdooMates  2 года назад

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

    • @SyedUsman
      @SyedUsman 2 года назад +1

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

    • @OdooMates
      @OdooMates  2 года назад

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

    • @SyedUsman
      @SyedUsman 2 года назад +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  2 года назад

      You can generate external id by just exporting the record

  • @rohailqamar8930
    @rohailqamar8930 3 года назад +1

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

    • @OdooMates
      @OdooMates  3 года назад

      default reports or customized reports ?

  • @LBONLINETV
    @LBONLINETV 4 года назад +1

    Hello, how can i define a simple treeview report in Odoo11?

  • @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'"

  • @imahcupangchannel8839
    @imahcupangchannel8839 2 года назад

    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  2 года назад

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

  • @bryanjadeloplop6376
    @bryanjadeloplop6376 4 года назад +1

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

    • @OdooMates
      @OdooMates  4 года назад

      which version you are using ?

    • @bryanjadeloplop6376
      @bryanjadeloplop6376 4 года назад

      @@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. :(

  • @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

  • @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

  • @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 ? ruclips.net/video/ikZa8GqgqaU/видео.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

  • @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

  • @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

  • @mahmoudarouri6537
    @mahmoudarouri6537 3 года назад +1

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

  • @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

  • @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

  • @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?

  • @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

  • @clai1087
    @clai1087 4 месяца назад

    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...

  • @PARVATHYMENONKS
    @PARVATHYMENONKS Год назад

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

  • @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??

  • @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

  • @anjum.p2645
    @anjum.p2645 4 года назад +1

    How to bring graphs in pdf report. Pls help

  • @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

  • @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 3 года назад

      same can be done with inheritance?

  • @sahilmansuri1639
    @sahilmansuri1639 4 года назад

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

    • @OdooMates
      @OdooMates  4 года назад

      You can change the report type to html

  • @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 9 месяцев назад

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

  • @AdeshPaul
    @AdeshPaul 4 года назад +1

    Thanks.

  • @juancarlosortega7278
    @juancarlosortega7278 3 года назад +1

    Thanksssss

  • @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