Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I put one to many field in product & pdf field as binary.
I got binary data on webpage. I want to convert into pdf file all data.
I also used jquery for that.
I got solution.
pdf file dispaly on website page and also download it.
Here, I paste the code.
I hope it is useful to you also.
<!-- Display list of pdfs to download. -->
<div t-if="product.pdfs" class="row">
<table width="100%" class="table table-responsive">
<t t-foreach="product.pdfs" t-as="i">
<t t-esc="i.name" />
<a t-att-href="'data:application/pdf;base64,%s' %i.pdf"
I hope this is useful to all of you.
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 1/3/15, 2:06 PM|
|Seen: 4332 times|
|Last updated: 12/13/15, 1:11 PM|