Mangono Sweego Mail (14.0)
Intégration Sweego (email transactionnel) pour Odoo 14 : envoi SMTP, suivi de distribution par webhook, et surtout réception des réponses directement dans le chatter de l'enregistrement d'origine (commande fournisseur, devis, facture…).
Backport de la branche 18.0 de ce dépôt. Les écarts ci-dessous viennent uniquement des API qui n'existent pas encore en 14.0 : la structure des fichiers est identique d'une branche à l'autre, pour qu'un correctif se reporte sans réécriture.
Écarts avec la version 18.0
| 18.0 | 14.0 | Pourquoi |
|---|---|---|
ir.mail_server.smtp_authentication = 'sweego' |
ir.mail_server.sweego_enabled (booléen) |
smtp_authentication n'existe qu'à partir de 17.0 |
_find_mail_server(email_from) / from_filter |
sweego_forced_mail_server_id dans le contexte, posé par mail.mail._send, sinon serveur actif de plus petite sequence |
14.0 n'a ni from_filter ni _find_mail_server : le serveur retenu est celui de mail.mail.mail_server_id, à défaut le plus prioritaire |
company.alias_domain_id / mail.alias.domain |
paramètre système mail.catchall.domain |
le modèle mail.alias.domain n'existe qu'à partir de 17.0 ; en 14.0 il n'y a qu'un domaine par base |
failure_type mail_bl / mail_email_invalid / mail_smtp |
RECIPIENT / RECIPIENT / BOUNCE |
mail.notification.failure_type ne connaît que SMTP, RECIPIENT, BOUNCE, UNKNOWN en 14.0 |
mail.mail.failure_type |
non écrit (seul failure_reason existe) |
le champ n'existe pas sur mail.mail en 14.0 |
mail.notification.mail_mail_id |
mail.notification.mail_id |
renommé en 16.0 |
match / case |
if / elif |
Odoo 14 tourne sous Python 3.9 |
module mangono_sweego_sms |
non porté | l'API SMS de 14.0 (sms.sms, iap) est trop éloignée, et le besoin porte sur le mail |
Configuration
- Réglages généraux → section Mangono Sweego : clé API et Client UUID.
- Réglages généraux → paramètre système
mail.catchall.domain: le domaine de réception déclaré côté Sweego. Sans lui, aucune adressereply+…n'est posée et les réponses ne remontent pas dans le chatter. - Serveur de mail sortant : cocher Mangono Sweego SMTP, renseigner l'identifiant SMTP Sweego, laisser le chiffrement sur STARTTLS.
- Recopier les deux URL de webhook affichées sur la fiche serveur dans le tableau de bord Sweego, et coller en retour les deux secrets (entrant et sortant).
Tests
/usr/bin/python3.9 ~/workspace/python/v14/odoo/odoo-bin -d <base> \
-c ~/workspace/python/v14/odoo/openerp-server.conf \
-u mangono_sweego_mail --test-enable --test-tags mangono_sweego_mail \
--stop-after-init --http-port=1409
La documentation fonctionnelle complète est dans
docs/mangono_sweego_mail.adoc.
Metadata
Release files for mangono-addon-mangono_sweego_mail 14.0.1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mangono_addon_mangono_sweego_mail-14.0.1.0.0-py3-none-any.whl | Python 3 | none | any | Details for mangono_addon_mangono_sweego_mail-14.0.1.0.0-py3-none-any.whl |
Release files / mangono_addon_mangono_sweego_mail-14.0.1.0.0-py3-none-any.whl
| Download URL | mangono_addon_mangono_sweego_mail-14.0.1.0.0-py3-none-any.whl |
|---|---|
| Size | 353.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f714ba73ac64662559ba220487d1fe61c72dd0901da8a53e4d7b97b326007373
|
|
BLAKE2b-256 checksum How to use checksums |
3a733235704f833f5a82560370e3fdd4c9e5348245bc6160df367a6c827b0e67
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.30 {"installer":{"name":"uv","version":"0.9.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for mangono-addon-mangono_sweego_mail 14.0.1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.