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
La domanda è stata contrassegnata
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.
Ti stai godendo la conversazione? Non leggere soltanto, partecipa anche tu!
Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!
Registrati| Post correlati | Risposte | Visualizzazioni | Attività | |
|---|---|---|---|---|
|
|
0
set 15
|
5867 | ||
|
|
0
set 15
|
6009 | ||
|
|
3
mar 26
|
1672 | ||
|
PDF reports
Risolto
|
|
5
lug 25
|
5047 | |
|
Wrong PDF Format
Risolto
|
|
2
mar 24
|
5688 |