Hi Community,
I created html and pdf report using wizard and abstract model the function _get_report_values(), the report was generated successfully. that's fine, if i am going to refresh the page odoo render page 404 not found. Is this odoo feature or issue , i haven't idea about it. i need to solve this could u please help me,
thanks in adavance.
John
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- إدارة علاقات العملاء
- e-Commerce
- المحاسبة
- المخزون
- PoS
- المشروع
- MRP
لقد تم الإبلاغ عن هذا السؤال
Hi,
This behaviour is normal in Odoo, not an issue.
Reports generated from a wizard use a transient model, which stores temporary records.
After the report is created, Odoo automatically deletes the wizard record.
When you refresh the report page, Odoo tries to load the same wizard record again.
Since the record no longer exists, Odoo returns 404 Not Found.
Report URLs from wizards are not meant to be refreshed.
To avoid this, avoid refreshing the report page.
Or return a redirect action to another view after generating the report.
If you need a refresh-safe report, move the logic to a normal model instead of a transient model.
Another option is to generate the report through a custom controller that does not rely on transient records.
Hope it helps.
هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيل| المنشورات ذات الصلة | الردود | أدوات العرض | النشاط | |
|---|---|---|---|---|
|
|
0
سبتمبر 15
|
4928 | ||
|
|
0
سبتمبر 15
|
5108 | ||
|
PDF reports
تم الحل
|
|
5
يوليو 25
|
3355 | |
|
Wrong PDF Format
تم الحل
|
|
2
مارس 24
|
3910 | |
|
|
0
نوفمبر 22
|
3833 |