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.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- إدارة علاقات العملاء
- e-Commerce
- المحاسبة
- المخزون
- PoS
- Project
- MRP
لقد تم الإبلاغ عن هذا السؤال
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
مايو 25
|
830 | ||
|
2
نوفمبر 16
|
4362 | ||
|
1
مارس 15
|
4185 | ||
|
0
أغسطس 24
|
1317 | ||
|
0
يونيو 23
|
1843 |