콘텐츠로 건너뛰기
메뉴
신고된 질문입니다
2 답글
2656 화면

Hi, 
I am trying to validate my GRN, but unable to do so.
The error " Only invoices could be printed. " is generated.

My control policy is received quantity.

thanks

아바타
취소
베스트 답변

Hi,
The above message is expected to raise only when a journal entry is tried to print using the Print invoice option. Are you getting this on trying to print or on clicking the validate/post button in the entry ?

Thanks

아바타
취소
베스트 답변

Hi,

In the account module, the "_render_qweb_pdf" function triggers a check to verify if the invoice type is designated as an "entry". If any of the invoices fall into this category, it prompts a pop-up notification displaying a UserError message stating, "Only invoices can be printed."

 if any(x.move_type == 'entry' for x in invoices):

    raise UserError(_("Only invoices could be printed."))


Hope it helps

아바타
취소
관련 게시물 답글 화면 활동
2
2월 25
2037
1
6월 24
3731
0
7월 23
1521
1
6월 23
2509
0
6월 23
1326