From 3869fbc6c852322a0df879081d119ec2c8bb90f2 Mon Sep 17 00:00:00 2001 From: Eduard Carrerars Date: Tue, 20 Jun 2023 14:02:38 +0200 Subject: [PATCH 1/2] Fix when getting event type certification_completed --- poweremail_signaturit/poweremail_mailbox.py | 1 + 1 file changed, 1 insertion(+) diff --git a/poweremail_signaturit/poweremail_mailbox.py b/poweremail_signaturit/poweremail_mailbox.py index 2560d04..4ee0d27 100644 --- a/poweremail_signaturit/poweremail_mailbox.py +++ b/poweremail_signaturit/poweremail_mailbox.py @@ -97,6 +97,7 @@ def _get_certificat_states(self, cursor, uid, context=None): ('email_delivered', _(u"Email enviat")), ('email_opened', _(u"Email obert per el receptor")), ('email_bounced', _(u"No s'ha pogut enviar el email")), + ('certification_completed', 'certification_completed'), # Posem el mateix fins que a la documentació hi hagi alguna cosa ('email_deferred', _(u"No s'ha pogut enviar el email, es fara un reintent")), ('documents_opened', _(u"Vista previa dels documents del email oberta")), ('document_opened', _(u"Documents del email oberts")), From 35b3bfb050755e5d3a1c2a579609dbf7c0d57390 Mon Sep 17 00:00:00 2001 From: Eduard Carreras Date: Wed, 21 Jun 2023 12:12:38 +0200 Subject: [PATCH 2/2] Update poweremail_mailbox.py Allow size 50 --- poweremail_signaturit/poweremail_mailbox.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poweremail_signaturit/poweremail_mailbox.py b/poweremail_signaturit/poweremail_mailbox.py index 4ee0d27..01b00e2 100644 --- a/poweremail_signaturit/poweremail_mailbox.py +++ b/poweremail_signaturit/poweremail_mailbox.py @@ -106,7 +106,7 @@ def _get_certificat_states(self, cursor, uid, context=None): return res _columns = { - 'certificat_state': fields.selection(_get_certificat_states, 'Estat del mail certificat'), + 'certificat_state': fields.selection(_get_certificat_states, 'Estat del mail certificat', size=50), 'certificat_signature_id': fields.char("Signatureit ID", size=64) }