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

Hello!

In Odoo we have ability to print documents. And after I select the type of report (screenshot) - it instantly creates a pdf file. I would like that after clicking the button, the view I created with various settings is called and that only after clicking the Print button inside the view, printing occurs. 


Please tell me where in Odoo I can find the function that occurs when you click on the report type - I want to try to change it. :)


Thanks!

아바타
취소
베스트 답변

Hi,

There is a function _get_report_values, which will be executed on printing the reports, check and see whether it helps in your case. If the function is not existing for the report, you can add it.

See: How To Call A Python Function While Printing PDF Report in Odoo

Thanks

아바타
취소

Hi, Niyas!

Did I understand correctly that this function is applied to individual reports? Is it possible to make our function always run when printing any report?

Thanks

관련 게시물 답글 화면 활동
8
5월 25
42985
1
3월 15
4577
1
2월 24
3867
3
10월 22
19910
0
12월 20
2933