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

Hi everyone, I recently migrated from version 11 to version 13 of odoo, my system is based on communication via REST API, so in the external interface I had given the possibility to download invoices, since I migrated to version 13 , I no longer have attachments, so I no longer have the id, how can I recreate them for all invoices?
Is there a method that allows me to recreate it?
Addition:
When from the backend of odoo I go to the invoice but it recreates it then I can download it from the frontend.

아바타
취소
작성자 베스트 답변

Ok solved (for now),

report = self.env['ir.actions.report']._ get_report_from_name('account.report_invoice_with_payments')


report.sudo().render(inv.id)


Only solution found at the moment, bad for performance. I will update you if there is any news, in the meantime I thank all the people who have answered me.

아바타
취소
베스트 답변

Hi

make sure about your Old Server's Filestore must be copied on the Newly server.

Thanks 

아바타
취소
작성자

I can't

you can do it via SSH Access of your old server if you have it.

작성자

No and it would also be useless, when I do the POST in the REST, he goes to read the attachment, let's say I change the template, he would return the old one. My question is: is it possible to re-generate the pdf without creating the invoice? Maybe even with a cron

베스트 답변

Did you also copy the filestore?

아바타
취소
작성자

No

관련 게시물 답글 화면 활동
2
5월 25
958
2
11월 16
4487
1
3월 15
4301
0
8월 24
1368
0
6월 23
1914