Hi,
I am trying to generate a pdf. I started with the basic to get the company details in the header and footer of the pdf i used web.external_layouts
but it gives me an empty blank page instead of the details. Am i missing something?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi,
I am trying to generate a pdf. I started with the basic to get the company details in the header and footer of the pdf i used web.external_layouts
but it gives me an empty blank page instead of the details. Am i missing something?
I did everything mentioned above still i am not able to get the header and footer and also the print button which automatically appears dosent seems to appear at all. I also noticed that if i download the pdf preview in settings it doesnt come with the header and footer. It shows the header and footer only in the preview and disspappers after downloading !
Use 'web' module as depends in manifest file and restart your server
Hello Guhan,
I am assuming that you have added needed dependencies, if you not that you need to add 'depends': ['web'], in manifest.py
Generally header and footer are being added with such code
You can also use Odoo Studio for to implement this changes. Simply follow below steps
I hope this will help you !
Thanks,
Vimal Rughani (Founder and CTO)
Himanjali Intelligent Automation Pvt Ltd
Contact: +91- 972-606-7737
Email: hello@himanjali.com
Newsletter: The Odoo Scoop
Website: www.himanjali.co
Hi,
Does your module depend on the web module? web.external_layout is part of the web module. If your module doesn't depend on it, adding a dependency might be necessary.
Hope it Helps!
Create an account today to enjoy exclusive features and engage with our awesome community!
Přihlásit seRelated Posts | Odpovědi | Zobrazení | Aktivita | |
---|---|---|---|---|
Wrong PDF Format
Vyřešeno
|
|
2
bře 24
|
2346 | |
|
0
lis 22
|
2648 | ||
|
0
zář 17
|
4948 | ||
|
0
bře 15
|
3446 | ||
|
1
bře 15
|
8071 |
See: https://www.youtube.com/watch?v=SkKAXURqNfQ&list=PLqRRLx0cl0hpyLO0YijMDoEhUu4F9W8k_