Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
2833 มุมมอง

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ก.พ. 25
2208
1
มิ.ย. 24
3950
0
ก.ค. 23
1583
1
มิ.ย. 23
2689
0
มิ.ย. 23
1378