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
Această întrebare a fost marcată
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.
Îți place discuția? Nu doar citi, alătură-te!
Creează-ți un cont astăzi pentru a beneficia de funcții exclusive și a interacționa cu minunata noastră comunitate!
Înscrie-te| Postări similare | Răspunsuri | Vizualizări | Activitate | |
|---|---|---|---|---|
|
|
0
sept. 15
|
5861 | ||
|
|
0
sept. 15
|
6006 | ||
|
|
3
mar. 26
|
1608 | ||
|
PDF reports
Rezolvat
|
|
5
iul. 25
|
4953 | |
|
Wrong PDF Format
Rezolvat
|
|
2
mar. 24
|
5612 |