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

l10n_it_website_portal_fatturapa: implementazione gestione utente dal portale #3644

Closed
2 tasks done
Borruso opened this issue Oct 5, 2023 · 2 comments · Fixed by #3406
Closed
2 tasks done

l10n_it_website_portal_fatturapa: implementazione gestione utente dal portale #3644

Borruso opened this issue Oct 5, 2023 · 2 comments · Fixed by #3406
Labels
14.0 stale PR/Issue without recent activity, it'll be soon closed automatically. triaged

Comments

@Borruso
Copy link
Contributor

Borruso commented Oct 5, 2023

Aggiungere nella funzione details_form_validate

country_italy = request.env.ref("base.it", raise_if_not_found=False)
country_id = data.get("country_id", False)
if country_id and country_italy and int(country_id) != country_italy.id:
    data["codice_destinatario"] = "XXXXXXX"
elif data.get("codice_destinatario") == "XXXXXXX":
    data["codice_destinatario"] = "0000000"

se creo un contatto in backend quando cambio la nazione si attiva onchange_country_id_e_inv impostando il codice destinatario su "XXXXXXX" oppure "0000000" a seconda che il country impostato sia un paese estero oppure l'Italia.

@FrancescoBallerini
Copy link
Contributor

@Borruso Visto la issue, volevo aprirla su tuo consiglio ma non ero sicuro su come procedere.

Aggiungo anche qui per completezza che la modifica proviene da #2520 (comment) , chiedo inoltre se può avere senso referenziare il codice destinatario standard "0000000" importando STANDARD_ADDRESSEE_CODE

Ultima cosa, forse a questo punto conviene aggiungere anche la 12 al tracciamento?

Copy link

github-actions bot commented Aug 4, 2024

There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Aug 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
14.0 stale PR/Issue without recent activity, it'll be soon closed automatically. triaged
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants