Skip to content

[FIX] l10n_it_fatturapa_pec - user without permission to access settings can't send PEC#3933

Closed
michelerusti wants to merge 1 commit into
OCA:16.0from
michelerusti:16.0-fix-l10n_it_fatturapa_pec-sendy-pec-permission
Closed

[FIX] l10n_it_fatturapa_pec - user without permission to access settings can't send PEC#3933
michelerusti wants to merge 1 commit into
OCA:16.0from
michelerusti:16.0-fix-l10n_it_fatturapa_pec-sendy-pec-permission

Conversation

@michelerusti

Copy link
Copy Markdown
Contributor

Risolve #3932 per 16.0

@michelerusti michelerusti force-pushed the 16.0-fix-l10n_it_fatturapa_pec-sendy-pec-permission branch from d67e9df to c46ffa6 Compare February 6, 2024 16:32
@francesco-ooops francesco-ooops linked an issue Feb 7, 2024 that may be closed by this pull request
2 tasks

@SirAionTech SirAionTech left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Grazie della PR!
Puoi aggiungere un test? Così si evitano regressioni.

Ho provato a riprodurre l'errore nel runboat di 16.0 ma ottengo
image
perché non posso confermare il servire di posta in ingresso PEC, sai mica se ci sono dei server di posta da poter configurare per i test? Ho provato a cercare ma trovo solo servizi per testare un nuovo server di posta 😅

}
mail = (
self.env["mail.mail"]
.sudo()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Senza questo che errore viene sollevato? Nella issue parlavi solo di errori per ir.config_parameter (che immagino vengano corretti dall'altra modifica)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Creazione dei record "Posta in uscita" (mail.mail) non consentita.

L'operazione è consentita per i seguenti gruppi:
- Amministrazione/Impostazioni

Se necessario, contattare l'amministratore per richiedere l'accesso.


def check_first_pec_sending(self):
sdi_address = self.env["ir.config_parameter"].get_param("sdi.pec.first.address")
sdi_address = (

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Questa la metterei dentro l'if altrimenti verrebbe eseguita sempre anche dopo aver ricevuto l'indirizzo finale

}
mail = (
self.env["mail.mail"]
.sudo()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mi sembra strano perchè questa necessità non mi è mai capitata anche con utenti senza diritti di amministrazione

@stenext stenext May 15, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inizialmente chiede cliccando su "invia e stampa" chiede i diritti di accesso:

Accesso ai record "Modelli" (ir.model) non consentito.
L'operazione è consentita per i seguenti gruppi:

  • Amministrazione/Diritti di accesso
    Se necessario, contattare l'amministratore per richiedere l'accesso.

In questo runboat non lo fa perchè bisognerebbe fare un rebase comprendendo anche la modifica successiva a questa PR fatta da @monen17 ed @eLBati in cui probabilmente bisognerebbe aggiungere sudo() per la creazione di mail.message: abb391f#diff-c2fcfef6f58895806d38a8668b81bc2174837142537bd2ce7b04e04c977c884aR133

Aggiungendoli crea l'XML, ma cliccando "Invia SDI" all'utente compare quello che ho scritto sopra legato a mail.mail

@github-actions

Copy link
Copy Markdown

There hasn't been any activity on this pull request in the past 4 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 PR 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 25, 2024
@github-actions github-actions Bot closed this Sep 29, 2024
@TheMule71 TheMule71 mentioned this pull request Nov 15, 2024
35 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

16.0 stale PR/Issue without recent activity, it'll be soon closed automatically.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

l10n_it_fatturapa_pec - User without setting permission can't send PEC

5 participants