跳至內容
選單
此問題已被標幟
2 回覆
2679 瀏覽次數

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
2066
1
6月 24
3761
0
7月 23
1527
1
6月 23
2530
0
6月 23
1332