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

i wont allowing print that report in  draft mode 

how to do 

anybody can help me

아바타
취소
베스트 답변

Hi,

If your report is under the action/print button in the top of the view, a simple work around you can do is that, add button in header of the form and call the report from it. And you can hide the report in the print menu by putting menu="False" for the report tag.

So once you moved the print button to the header, from here you can easily hide the print button based on states by putting necessary states inside states attribute or by attrs.

Thanks

아바타
취소
작성자

niyas , not working attrs in reports

when i use simply menu ="false" print is blocked all the states when i use attrs="{'invisible':[('state','!=','draft')]}" donesnot working

can you elaborate little bit

Once you give the menu="False", the report will not be available under the print button. Then what you have to do is that, add a normal print button inside the header of the form and print report from it. Once you add new button for print, it can be hide based on the states.

작성자

its working niyas thnak you soo much

관련 게시물 답글 화면 활동
2
7월 25
4908
2
12월 24
7953
2
11월 24
28770
2
5월 24
7637
3
3월 24
7091