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
Esta pergunta foi sinalizada
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.
Está gostando da discussão? Não fique apenas lendo, participe!
Crie uma conta hoje mesmo para aproveitar os recursos exclusivos e interagir com nossa incrível comunidade!
Inscrever-se| Publicações relacionadas | Respostas | Visualizações | Atividade | |
|---|---|---|---|---|
|
|
0
set. 15
|
5866 | ||
|
|
0
set. 15
|
6008 | ||
|
|
3
mar. 26
|
1639 | ||
|
PDF reports
Resolvido
|
|
5
jul. 25
|
4989 | |
|
Wrong PDF Format
Resolvido
|
|
2
mar. 24
|
5651 |