Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
2670 Переглядів

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
2059
1
черв. 24
3753
0
лип. 23
1525
1
черв. 23
2522
0
черв. 23
1332