Dingtalk Mail
DingTalk Message Push And Event Subscription
Turn Odoo subscribe events into DingTalk work notifications.
One template per message subtype, one opt-in switch per user.
Overview
A stock Odoo notification stops at the Odoo inbox, so a follower on the road never sees it. This module renders a configurable message template against the record and pushes it to the follower's DingTalk account through the corporate message API.
The template is data driven: each parameter row maps a display name to an Odoo expression, so the same template works for every record of the model. The module also exposes a DingTalk event subscription callback that decrypts and verifies the incoming payload.
Complete Feature List
-
1. DingTalk work message push
Sends corporate conversation messages through the asyncsend_v2 API; the access token is taken from the DingTalk app config -
2. Configurable message templates
A template is stored once and reused across records, with a list of parameter rows under it -
3. Odoo expression rendering
Each parameter maps a display name to an expression such as object.name, resolved from the record without safe eval -
4. Bind a template to a message subtype
Any Odoo message subtype gets a template field, so the subscription event triggers the push -
5. Per-user opt-in
The Notify via DingTalk switch on the user form decides who receives pushes, on by default -
6. Follower pipeline hook
Recipient data carries the DingTalk flag, so only opted-in followers are pushed -
7. Sales order entry point
action_send_ding_message resolves the customer's DingTalk user and sends the rendered template -
8. Manual send wizard
Pick recipients from the synced DingTalk contacts and send an ad-hoc message from the contact form -
9. Event subscription callback
An HTTP endpoint decrypts the AES-CBC payload, verifies the SHA1 signature and replies with the encrypted success token -
10. Bound subtype stat button
The template form shows how many message subtypes use it and jumps straight to them
Key Highlights
What makes the push configurable instead of hard coded
1. Template Parameters
Name plus Odoo expression
Every row pairs a display name with an expression. Adding a field to the message is a data change, not a code change.
2. Subtype Trigger
Reuse the Odoo subscription engine
Binding a template to a message subtype reuses Odoo's own subscription rules, so no per-model workflow code is needed.
3. User Opt-In
One switch per Odoo user
Each user decides whether to receive DingTalk pushes. The follower pipeline carries the flag, so unselected users are skipped.
4. Signed Callback
AES key plus signature token
The callback URL is generated per app config. Incoming payloads are decrypted with the AES key and checked against the signature token.
General Features
Multi-Language & Multi-Company
Built for Global Teams
Full multi-language translation support for global deployments. Native multi-company architecture with strict data isolation.
Full Version Support
Odoo 12 to 18
Works with Odoo 18,17,16,15,14,13,12, EE/CE/.SH, compatible with Enterprise, Community and Odoo Online SaaS.
Source Available
OPL-1 Licensed
Released under OPL-1. Transparent, auditable code, open for further development and customization.
How It Works
1. Configure
Set the AES key and signature token, copy the callback URL to DingTalk
2. Build template
Add parameter rows with Odoo expressions
3. Bind subtype
Pick the template on a message subtype
4. Follow
Users with the DingTalk switch follow the record
5. Push
The event sends the rendered message to DingTalk
Supported & Dependent Modules
- app_dingtalk_base
- sale
odooai.cn
Professional Odoo Solutions: Development, Implementation, Consulting & Training
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Invoicing (account)
• Discuss (mail) • Website (website) • Purchase (purchase) |
| Community Apps Dependencies |
Show
•
钉钉开放平台同步基础模块,Dingtalk Base openapi and log
• API同步日志框架,Sync Base API Logger • 钉钉整合登录注册,Dingtalk OAuth Login Signup • Hide Powered by Odoo and Boost with 60+ Tweak Pack All in One / 60+项Odoo优化提速OEM去标大全 • 欧度智能基础功能及面板,odooAi Common Util and Tools • 多平台社交登录绑定, Real SSO Social Login • SaaS云服务客户端 / odooapp.cn SaaS Client - Ai Passport • 往来单位客户供应商拆分,Separate Customer & Vendor in Sale & Purchase |
| Lines of code | 21011 |
| Technical Name |
app_dingtalk_mail |
| License | OPL-1 |
| Website | https://www.odooai.cn |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module