Create and Print PDF Report From Wizard in Odoo

  Рет қаралды 24,271

Odoo Mates

Odoo Mates

Күн бұрын

How to create and print PDF report from wizard in Odoo. Print qweb pdf report from wizard in Odoo. Generate report from Wizard in Odoo. Print Pdf report from wizard.
Email: odoomates@gmail.com

Пікірлер: 56
@VanHelsing2021
@VanHelsing2021 4 жыл бұрын
I like that Odoo Mates works with the CE version of Odoo
@OdooMates
@OdooMates 4 жыл бұрын
happy to hear it :)
@alexisayala7061
@alexisayala7061 2 жыл бұрын
How can you create different invoicing templates for different companies?. Do you have a video for that?. Thanks!
@OdooMates
@OdooMates 2 жыл бұрын
Not particularly for this topic, but we have videos on creating reports from scratch, in your case, you have to do further customization, to configure the invoice template in the company, and on printing you have to get the template from the company. Steps: 1. add option to configure template in company 2. add a new button to print invoice in the invoice form 3. upon clicking the button, get report template from the related company of user or the record and render it
@julius3419
@julius3419 3 жыл бұрын
Interesting Video! Is it possible to print the dynamic report name from the wizard? It seems like the download report is always having the same report name.
@OdooMates
@OdooMates 2 жыл бұрын
there is an option print_report_name in the report action, but it will not be applicable when we print from a wizard. sample: 'Print Badge - %s' % (object.name).replace('/', '')
@ahmedsaber4284
@ahmedsaber4284 4 жыл бұрын
Ahmed Saber I write the same code and and i get the value of appointment_list right and print it in log. And it's not printing the in pdf report. i don't know why. I using odoo11 btw
@OdooMates
@OdooMates 4 жыл бұрын
Can you take the code from here and compare: apps.odoo.com/apps/modules/12.0/om_hospital/
@charlesdonboscoa4041
@charlesdonboscoa4041 4 жыл бұрын
Hi I can face the same problem How can i solve it
@charlesdonboscoa4041
@charlesdonboscoa4041 4 жыл бұрын
@@OdooMates hi sir I can download and check code all is fine but the same problem I can face it,I don't know why
@syedsajjad7305
@syedsajjad7305 4 жыл бұрын
9:46 ID in python file is "report_appointment" while in xml template ID = "appointment_report". both ids dont match. can you explain this?
@OdooMates
@OdooMates 4 жыл бұрын
we have to call the id given in the report tag, see this: github.com/odoomates/odooapps/blob/12.0/om_hospital/reports/report.xml
@syedsajjad7305
@syedsajjad7305 4 жыл бұрын
@@OdooMates thank you
@systemengineer5142
@systemengineer5142 4 жыл бұрын
@Odoo Mates Can you suggest same for ver. 10?
@OdooMates
@OdooMates 4 жыл бұрын
You mean how to do same in odoo10 ?
@computerdoctors
@computerdoctors 4 жыл бұрын
@@OdooMates Yes please
@OdooMates
@OdooMates 4 жыл бұрын
@@computerdoctors it almost same, did you face any difficulties?
@computerdoctors
@computerdoctors 4 жыл бұрын
@@OdooMates In Odoo10 I get the following error: AttributeError: 'ir.actions.report.xml' object has no attribute 'report_action'
@abdullahmeaad1362
@abdullahmeaad1362 2 жыл бұрын
thank you , could you please share the video where you added the barcode ?
@OdooMates
@OdooMates 2 жыл бұрын
kzbin.info/www/bejne/mKi3kI2qgLyhb6c
@darmentorres4436
@darmentorres4436 3 жыл бұрын
Is this applicable in Odoo v10? Or do you have equivalent code for this in v10?
@OdooMates
@OdooMates 3 жыл бұрын
follow the same procedure in other version, if you get stuck or get error , share us the issue/error message, we will help you to sort it out
@darmentorres4436
@darmentorres4436 3 жыл бұрын
@@OdooMates I had follow the procedure and getting this error File "/home/odoo10/devs/custom_addons/openacademy/wizards/session_print_by_course.py", line 27, in print_by_course return self.env.ref('openacademy.report_session_template').report_action(self, data=data) AttributeError: 'ir.ui.view' object has no attribute 'report_action' The error was on the return statement of the procedure. here is the code of the function: def print_by_course(self): print('>>>', self.read()[0]) data = { 'model': 'openacademy.session', 'form': self.read()[0] } return self.env.ref('openacademy.report_session_template').report_action(self, data=data)
@LucaSubiaco
@LucaSubiaco 4 жыл бұрын
Hello, have module on github or similar to be able to take inspiration? Thank you Luca
@OdooMates
@OdooMates 4 жыл бұрын
Hi, the module is already added in our github repository as well as in Odoo app store
@LucaSubiaco
@LucaSubiaco 4 жыл бұрын
@@OdooMates ok, Thank you very much. luca
@malikkamil6596
@malikkamil6596 2 жыл бұрын
I am trying to book into Odoo ERP a backlog data however I am getting the below error The Date (05/31/2022) doesn't match the Number (STJ/2022/06/0037). You might want to clear the field Number before proceeding with the change of the date.
@clamentjohn
@clamentjohn 4 жыл бұрын
Hi, is it possible to sent print directly to the default printer (with out opening it in a PDF viewer)?
@OdooMates
@OdooMates 4 жыл бұрын
Use this module: apps.odoo.com/apps/modules/13.0/prt_report_attachment_preview/
@clamentjohn
@clamentjohn 4 жыл бұрын
@odooMates thank you. I didn't dig deep into answering my question but found an SO (stack overflow) discussion on printing using the default printer with some scripting in chrome
@mazenelshayeb
@mazenelshayeb 4 жыл бұрын
hello thank you it works with me but i want to add the fields in the wizard view to the report as well, how to do this please?
@OdooMates
@OdooMates 2 жыл бұрын
See: kzbin.info/www/bejne/aYataYichZlreJY
@aurangzaibbhatti4709
@aurangzaibbhatti4709 3 жыл бұрын
Hi, I am getting this error when print report: Error to render compiling AST TypeError: 'type' object is not iterable Template: customization_ZS.attendance_report_pdf_template Path: /t/t/t/div/div[2]/table/tbody/t Node: The error occured while rendering the template customization_ZS.attendance_report_pdf_template and evaluating the following expression:
@OdooMates
@OdooMates 3 жыл бұрын
may i know what is the dict used inside the foreach ?
@aurangzaibbhatti4709
@aurangzaibbhatti4709 3 жыл бұрын
@@OdooMates Thanks man, I was making some kind of mistake just rewrote the code its working. Thank you so much for help, you are a life savor man.
@OdooMates
@OdooMates 3 жыл бұрын
@@aurangzaibbhatti4709 happy that it helps :)
@maximouz
@maximouz 7 ай бұрын
your video its is very good but i dont know why the report is all blank in my case
@VanHelsing2021
@VanHelsing2021 4 жыл бұрын
GReat video man thanks for that!!!!
@OdooMates
@OdooMates 4 жыл бұрын
Thanks for the support :)
@ytm-ministry
@ytm-ministry 3 жыл бұрын
It's too much screen panning :) overall it's good
@OdooMates
@OdooMates 3 жыл бұрын
we have stopped the screen panning in latest videos
@atchathomas1885
@atchathomas1885 4 жыл бұрын
Hi @Odoo Mates I could not display the images. Why ? Anyone have an idea please? I have the following error 'data:image:png;base64,%s'to_text(eleve['photo'])
@OdooMates
@OdooMates 4 жыл бұрын
Can you please check the other comments on this video, there is a issue spotted by a person and he added it how to resolve it, please check and let us know :)
@hashimkhalid4604
@hashimkhalid4604 4 жыл бұрын
can you re-upload this video in higher quality please and all other ones!!?
@hashimkhalid4604
@hashimkhalid4604 4 жыл бұрын
sorry don't forget subtitle :)
@OdooMates
@OdooMates 4 жыл бұрын
Not audible ?
@hashimkhalid4604
@hashimkhalid4604 4 жыл бұрын
@@OdooMates yep voice is not good , all quality isn't good to be honest 😁
@OdooMates
@OdooMates 4 жыл бұрын
@@hashimkhalid4604 We will try to improve. Thanks
@anj000
@anj000 4 жыл бұрын
@@OdooMates please get actual English speakers on board. This accent is incomprehensible.
@erickinyua4364
@erickinyua4364 2 жыл бұрын
hi am getting an error when i try to print my report from a live server but it works well on the localhost. Kindly assist Traceback (most recent call last): File "/opt/odoo12/odoo/odoo/addons/base/models/qweb.py", line 347, in _compiled_fn return compiled(self, append, new, options, log) File "", line 1, in template_4549_24 File "", line 2, in body_call_content_23 File "", line 3, in body_call_content_22 TypeError: 'NoneType' object is not callable Error to render compiling AST TypeError: 'NoneType' object is not callable Template: 4549 Path: /templates/t/t/t/div[2]/div/table/tbody/t Node:
@OdooMates
@OdooMates 2 жыл бұрын
seems values passed or expected to be in template are not received correctly
@sindooram5140
@sindooram5140 Жыл бұрын
While click on a button for generate pdf report it shows an error 'lxml.etree.parseerror: document is empty'
@VanHelsing2021
@VanHelsing2021 4 жыл бұрын
GReat video man thanks for that!!!!
@OdooMates
@OdooMates 4 жыл бұрын
Thanks for the support :)
How To Inherit And Create New Report In Odoo
22:35
Odoo Mates
Рет қаралды 16 М.
How to create PDF Report from wizard | Odoo development | Reporting
23:48
Odoo Discussions
Рет қаралды 4,1 М.
Don't look down on anyone#devil  #lilith  #funny  #shorts
00:12
Devil Lilith
Рет қаралды 44 МЛН
Зу-зу Күлпаш 2. Бригадир.
43:03
ASTANATV Movie
Рет қаралды 642 М.
Synyptas 4 | Жігіттер сынып қалды| 3 Bolim
19:27
kak budto
Рет қаралды 1,1 МЛН
Watermelon magic box! #shorts by Leisi Crazy
00:20
Leisi Crazy
Рет қаралды 107 МЛН
Report Action in Odoo 13
17:35
Cybrosys Technologies
Рет қаралды 3,2 М.
How To Inherit And Modify Existing PDF Reports in Odoo
18:03
Odoo Mates
Рет қаралды 48 М.
How To Create Calendar View In Odoo
15:19
Odoo Mates
Рет қаралды 10 М.
How to Inherit and modify existing pdf report ? | Odoo Development
19:33
Cybrosys Technologies
Рет қаралды 11 М.
Odoo Review 2024: Pros, Cons, and Pricing
6:41
Software Connect
Рет қаралды 76 М.
أجهزة الخدمة الذاتية و الطلب الذاتي بنقاط البيع في #odoo 17
10:26
عبدالغني فوزي | Abdulghani Fawzi
Рет қаралды 645
Is this Samsung's change over time #shorts
0:13
Si pamerR
Рет қаралды 1,5 МЛН
top Apps 2024 october
0:24
No name
Рет қаралды 63 М.
How To Easy and First Editor In Photo Cropping Tool By Adobe
0:40
Nadeem HD Tech
Рет қаралды 1,1 МЛН