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

I had recently developed a module having details of warranty with preventive maintenance list added in it.The screenshot of the view is attached.Screenshot-1.png.In the above form view,the form details like Customer Name,Contract,Warranty status,Details,Serial no,Batch No. etc are defined as base fields and the fields below these(Preventive Maintenance tab) is added as custom field.I want to take the printout of the whole form including the details under the Preventive Maintenance tab also.How to add a print button so that the complete form can be printed?What are the changes to be made in the code?Should I add any new file for this?

아바타
취소
베스트 답변

create a new xml file and add something like this

<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
       <report auto="False" id="report_id" model="model_name" 
                name="report_name" rml="path/to/reportfile"
                string="My Report"/>
     </data>
</openerp>
아바타
취소
관련 게시물 답글 화면 활동
3
7월 22
11509
7
3월 22
41736
5
4월 19
5722
1
4월 16
3948
1
11월 15
10716