Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errore 404 nel download XML Fatturazione Elettronica dopo cambio denominazione dell'azienda #4629

Open
nbadino opened this issue Feb 25, 2025 · 2 comments

Comments

@nbadino
Copy link

nbadino commented Feb 25, 2025

Module

l10n_it_fatturapa_out

Describe the bug

Non sono sicurissimo sia questa la causa ma dopo aver modificato la "denominazione fiscale" dell'azienda, quando si tenta di scaricare il file XML di una fattura elettronica già esistente si ottiene un errore 404 Not Found. È interessante notare che la funzionalità di anteprima dello stesso XML funziona correttamente.
L'errore appare come: 404 Not Found
The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.
The above server error caused the following client error:
RPC_ERROR: Arbitrary Uncaught Python Exception

Additional context

  1. Il file XML esiste correttamente nel filestore:

    • Percorso: /var/lib/odoo/.local/share/Odoo/filestore/[nome_database]/[percorso_hash]
    • L'ID dell'allegato esiste nel database
  2. I record nel database sono corretti:

    • I record nelle tabelle fatturapa_attachment_out e ir_attachment contengono riferimenti corretti
    • Il file è correttamente nominato con il pattern della partita IVA: IT[PARTITA_IVA]_[CODICE].xml
  3. Problema con l'URL di download:

    • L'URL generato dal pulsante di download è incompleto: https://[dominio]/web/content/
    • Manca l'ID dell'allegato e altri parametri necessari
    • Utilizzando direttamente l'URL con l'ID dell'allegato funziona: https://[dominio]/web/content/[ID]?download=true

Dettagli dell'errore nel browser:
RPC_ERROR: Arbitrary Uncaught Python Exception
RPC_ERROR
at makeErrorFromResponse ([dominio]/web/assets/debug/web.assets_backend.js:10522:19) (/web/static/src/core/network/rpc_service.js:34)
at decoder.onload ([dominio]/web/assets/debug/web.assets_backend.js:10412:25) (/web/static/src/core/network/download.js:551)

@nbadino nbadino added the bug label Feb 25, 2025
@francesco-ooops
Copy link
Contributor

Ciao @nbadino grazie della segnalazione!

In quale versione hai riscontrato il problema?

Riesci a riprodurlo nel runboat con i dati di demo?

@nbadino
Copy link
Author

nbadino commented Feb 25, 2025

Si scusate, mi sono dimenticato, sono in odoo 16. Ho provato nel runboat ora e sembra funzionare. Allora non so proprio cosa abbia causato questo errore. Fino a settimana scorsa funzionava tutto correttamente

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants