Skip to Content
Menu
This question has been flagged
1 Reply
228 Views

Hello fellow Odoo users,

With every quote we make, we want to add a technical sheet. Every quote is always build the same way but the technical sheet is always different. It concerns windows and doors. We don't use different products but instead we always use the same product and product description and change the value.

What we want to do is add a PDF file with the technical description which is deliverd by another program. So when a quote is generated we want Odoo to ask which file it needs to add.


Is this possible?

Avatar
Discard
Best Answer

Hello, 

Yes its possible but you have to work with custom module to make it happen. 

you can add a attachment field into your form view (binary fields). After that, work on inheriting _add_pages_to_writer() method from ir.actions.report model that responsible to create the basic pdf file. Inside there you will need to add your attachment on the bottom of the file 

Later on, inherit _render_qweb_pdf_prepare_streams() method that responsible to render the quote. Here's some view example : i have added attachment file that can hold a pdf

Then, when printed out it will merge the pdf in attachment and the quotes

Hope this helps!

Altela (altelasoftware.com)



Avatar
Discard
Related Posts Replies Views Activity
2
Sep 25
410
3
Sep 25
487
3
Sep 25
576
4
Aug 25
1686
3
Aug 25
697