How To Create PDF Report in Odoo12

Поделиться
HTML-код
  • Опубликовано: 17 авг 2019
  • #howtocreatereportinodoo #reportgenerationodoo #odoo12createreport
    Steps for creating a new PDF report in Odoo12 from scratch. How to create new qweb-pdf report in Odoo version 12.
    See the part1: • How To Create PDF Repo...
    Email: odoomates@gmail.com
  • НаукаНаука

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

  • @ibrahimhalouane8130
    @ibrahimhalouane8130 4 года назад +2

    Don't we need to wrap the report in tag? I've found it in the odoo's addons.

  • @ArmandoSchianodiCola
    @ArmandoSchianodiCola 4 года назад +4

    Hello Sir, I just want to thank you for your tutorials. They are very helpful and clear

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

      :) Happy to hear it, hope you will refer the channel to odoo friends :)

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

    Thank you very much
    Can u explain when the user change the language has can I change it in report

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

    I want to add custom css to my report . I followed a tutorial but i have a problem with inhertit_id property i cant understand it and give me erroe " External ID not found in the system "

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

    I'm getting this error in odoo 10
    QWebException: 'NoneType' object has no attribute 'image'
    Traceback (most recent call last):
    File "F:\odoo-10.0\odoo\addons\base\ir\ir_qweb\qweb.py", line 318, in _compiled_fn
    return compiled(self, append, values, options, log)
    File "", line 1, in template_om_hospital_report_patient_cards_80
    File "", line 3, in body_call_content_79
    File "", line 4, in body_call_content_78
    File "", line 5, in foreach_77
    AttributeError: 'NoneType' object has no attribute 'image'
    Error to render compiling AST
    AttributeError: 'NoneType' object has no attribute 'image'
    Template: om_hospital.report_patient_cards
    Path: /templates/t/t/t/t/div/div[2]/center/div/table/tr[1]/td/p[1]/img[1]
    Node:

  • @AdeshPaul
    @AdeshPaul 3 года назад +2

    Thanks for teaching sir.

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

    How do I add this print button to my new module?

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

      See: ruclips.net/video/Dc8GDj7ygsI/видео.html

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

    Nice Explanation.

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

    very helpful

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

      Thanks... Hope you will like the video and subscribe the channel

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

    Patient that have image works perfectly!
    But for patient that have no image not work, placeholder.png didn't show.
    from 2 line this code:
    i change to one line:
    the purpose of change the code is make sure patient that have or have no image -> use static image (/web/static/src/img/placeholder.png), but yap... the result placeholder.png didn't show.
    Any wrong with my code or I miss dependency? something like that.
    Thank you.

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

      We are not testing, still if someone face any issue, the comment will be helpful for them

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

      @@OdooMates that happened because I'm not using .

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

    Hi OM, how to hide/show the print menu depends on state value?

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

      if you add the print option in the print button at the top it cannot be hide based on state, as an alternative, remove print button from the print menu and add it as button in the header and then hide based on state

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

      See: ruclips.net/video/ktDKoq9bvaI/видео.html

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

      See: ruclips.net/video/Dc8GDj7ygsI/видео.html

  • @sankar6593
    @sankar6593 4 года назад +2

    can you explain the how-to merge two models as a report ?thq

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

      If you need to take value from different models you have to create report using parser files

    • @obehobeh9984
      @obehobeh9984 4 года назад +2

      @@OdooMates How it's done?

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

      @@obehobeh9984 Which one ?

    • @obehobeh9984
      @obehobeh9984 4 года назад +2

      @@OdooMates "If you need to take value from different models you have to create report using parser files"

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

      @@obehobeh9984 ruclips.net/video/JGWc1KjyIBk/видео.html

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

    Patient that have no image not work! Didn't show in pdf file.
    This is because in template, I'm not using:
    So, make sure use that template, like in this video.