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 Наука
Don't we need to wrap the report in tag? I've found it in the odoo's addons.
Hello Sir, I just want to thank you for your tutorials. They are very helpful and clear
:) Happy to hear it, hope you will refer the channel to odoo friends :)
Thank you very much
Can u explain when the user change the language has can I change it in report
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 "
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:
Thanks for teaching sir.
happy to do it
How do I add this print button to my new module?
See: ruclips.net/video/Dc8GDj7ygsI/видео.html
Nice Explanation.
Thanks brother :)
very helpful
Thanks... Hope you will like the video and subscribe the channel
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.
We are not testing, still if someone face any issue, the comment will be helpful for them
@@OdooMates that happened because I'm not using .
Hi OM, how to hide/show the print menu depends on state value?
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
See: ruclips.net/video/ktDKoq9bvaI/видео.html
See: ruclips.net/video/Dc8GDj7ygsI/видео.html
can you explain the how-to merge two models as a report ?thq
If you need to take value from different models you have to create report using parser files
@@OdooMates How it's done?
@@obehobeh9984 Which one ?
@@OdooMates "If you need to take value from different models you have to create report using parser files"
@@obehobeh9984 ruclips.net/video/JGWc1KjyIBk/видео.html
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.
Thanks brother