63.Create PDF Report From Wizard In Odoo14 || Odoo 14 Qweb Tutorials
ฝัง
- เผยแพร่เมื่อ 4 ต.ค. 2024
- How to create pdf report from wizard in odoo. Steps to create pdf report from wizard in odoo 14. Steps to print qweb report from wizard in Odoo. FIlter and print report based on selection in wizard in odoo development. Odoo reporting tutorials. Odoo qweb reporting tutorials.
Odoo 14 Playlist: • 2. How To Create Modul...
Module: apps.odoo.com/...
Website: www.odoomates....
Github: github.com/odo...
Email : odoomates@gmail.com
Facebook: / odoomate
Twitter: / odoomates
Support Us in Ko Fi : ko-fi.com/odoo...
Hi Odoo Mates, your work are really great.
After follow this video, i've met this issue:
AttributeError: 'NoneType' object has no attribute 'compile'
AttributeError: 'NoneType' object has no attribute 'CompileError'
After debug, i've found that this issue is because i'm missing library "sass" and "libsass"
Here's step to resolve it:
sudo apt-get install python3.8-dev
pip install --upgrade setuptools
pip install sass
pip install libsass
Thanks.
May Allah bless you bro, your videos are rich source of information and too useful.
So nice of you
thanks for your videos, i learn to much, love your content.
thanks for the support
Amazing content as usual. thank you for sharing with us!
thanks brother for the support so far
Amazing 🥰. I have a ques that how to print multiple patient report details between the given date .
Hi, i've a question that how to call function in view file of report from wizard?
to call a function from a particular model ?
@@OdooMates No sir, to call function in the same model wizard.
Good job, please if you can explain to us how to use the py3o module, to generate the reports or modify the templates written with Office libre via odoo 12.
not yet used this module, will try and see
@@OdooMates Inchallah.
@@sihemtaibi3402
great content, when i try accessing appointments in qweb it raises an error: AttributeError: 'str' object has no attribute 'name'
Make sure that the variable that you are trying to get name from is object itself
@@OdooMates ok great thanks
Welcome
when i click on print. it is showing configure your layout and when i click save. it gives empty pdf . only white color
that means you have an empty template, did you designed the template to show the contents ?
@@OdooMates yes, i did
it is showing in settings also. i checked
Note
15:15 this part will explain about using --dev xml in configuration to ignore update module.
yes
bro there is one problem. when i add new menuitem ,that is reporting. my old menuitem, that is patient is removed. please help
may be for both menu;s you have given same id ? menu id should be unique
Pls tell me how to bring the patient name when downloading the .pdf file ?
Hey i was following your tutorials my module was working fine ... but due to some reason it started missbehaving ... i created a menu but when i searched that menu in technical section i got 6 results for same menu ... so uninstalled my module but i wont re install ... moudule can't find external ids.
may this be an issue with manifest file ?
Make sure the xml file are imported in correct order
@@OdooMates what is the correct order ?
Thank you
It is simple, when we rfer something in the code, example external id, that is setting parent for a menu or setting an action for a menu, before doing this that action or that parent menu has to be loaded. Simply it is same how referenced before assignment error in python
@@OdooMates ok Thank you
hi can i get report for particular salesperson from wizard like how you selecting date can i select salesperson if create sales person field in wizard and set domain? help plz
yes possible, by following the same way, you can achieve it, if face any difficulty, let us know
@@OdooMates salesperson_ids = fields.Many2many(comodel_name='res.users', string='Salesperson')
it shows salesperson field in wizard but when i click on print button it shoes error and when i click on see more it shows nothing
report code
if wizard_data.salesperson_ids:
domain += [('user_id', 'in', wizard_data.salesperson_ids.ids)]
@@OdooMates raise ValueError("Invalid field %s.%s in leaf %s" % (model._name, path[0], str(leaf)))
ValueError: Invalid field account.move.line.user_id in leaf ('user_id', 'in', [2])
If you are searching inside the model account move line, system says there is no field user_id in the account move line model
@@OdooMates in account move line we have field invoice_user_id that shoes salesperson on invoice but shows same error what should i do
Hi, I created a wizard and placed in menu i want details of pos session how can i get it in report from wozard
Using odoo orm method search or using sql queries, you can get the data from the models
@@OdooMates related material?or video
@@malikkamil6596 odoo orm: th-cam.com/video/tIaIixa3oAs/w-d-xo.html
th-cam.com/video/IK3OiceJKds/w-d-xo.html
when i click on print button it showing me blank report nothing is coming but i have mentioned h2 tag in template it should be print but it is not displaying in report any solution for this ?
solved
@@salonisingh8685 Happy that you find it, what was the problem ?
@@salonisingh8685 i have the same problem, how did you fixed it ?