콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
388 화면

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
493
3
9월 25
528
3
9월 25
597
4
8월 25
1726
Block sale. 해결 완료
3
8월 25
728