跳至内容
菜单
此问题已终结
1 回复
245 查看

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?

形象
丢弃
最佳答案

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)



形象
丢弃
相关帖文 回复 查看 活动
2
9月 25
420
3
9月 25
490
3
9月 25
578
4
8月 25
1689
Block sale. 已解决
3
8月 25
698