DingTalk OA Approval
Sync DingTalk approval templates and start approvals from Odoo records
Pull approval templates and form schemas from the DingTalk console.
Map Odoo fields automatically and launch the approval in one click.
Overview
Approval stays in DingTalk while the business document lives in Odoo, so the two systems drift apart. This module bridges them: it syncs every manageable approval template and its form schema from the DingTalk console into Odoo workflow templates.
When a workflow request is submitted, the module renders the DingTalk form by mapping Odoo record values to form components field by field, then creates the approval instance through the DingTalk API. Self-selected approval nodes, process forecast and sales order submission are covered out of the box.
Complete Feature List
-
1. Approval template sync
Pulls all manageable approval templates from the DingTalk console into Odoo workflow templates in one click, with create-or-write mapping -
2. Form schema sync
Fetches the form schema JSON of each template by processCode, so field definitions stay identical to the DingTalk design -
3. Automatic field mapping
Maps Odoo record values to DingTalk form components by field label: applicant, amount, reason, date, title, department -
4. Multi-component support
TextField, TextareaField, NumberField, MoneyField, DDDateField, DDSelectField, InnerContactField, DepartmentsField and more -
5. One-click approval start
Creates a DingTalk approval instance directly from an Odoo workflow request; the returned instanceId is stored back on the record -
6. Process forecast
Calls the DingTalk forecast API to detect self-selected approval nodes and caches the actor key on the template -
7. Self-selected approver
When the flow has a self-select node, the configured DingTalk approver is injected as targetSelectActioners -
8. Sales order approval
sale.order joins the workflow mixin: submitting the order pushes a fully mapped approval with customer, amount, salesman and dates -
9. Status hold
A workflow request stays pending while a DingTalk instance exists, so the Odoo state follows the DingTalk result -
10. Template test run
Test-create a real approval instance with default values for required fields before going live
Key Highlights
What makes the integration schema driven instead of hard coded
1. Schema Driven
The DingTalk form is the single source of truth
Form fields are read from the synced schema at runtime. Redesign the form in the DingTalk console and Odoo follows after the next sync.
2. Label Based Mapping
No per-form code
Common labels such as applicant, amount and reason resolve to record values automatically, so one mapping serves every template.
3. Flow Forecast
Know the route before submitting
The forecast API reveals self-selected approval nodes early, and the module caches the node key so submission never fails on a missing approver.
4. Document Ready
Sales order out of the box
Sales orders ship with a ready mapping: order number, customer, amount, salesman, order and delivery dates flow into the DingTalk form.
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 DingTalk app config and sync users
2. Sync templates
Pull approval templates and form schemas from DingTalk
3. Test run
Create a test instance to verify field mapping
4. Submit
Submit the Odoo document, the DingTalk approval starts
5. Approve
Approvers act in DingTalk, the Odoo request follows
Supported & Dependent Modules
- app_dingtalk_base
- app_dingtalk_mail
- app_workflow
- sale_management
odooai.cn
Professional Odoo Solutions: Development, Implementation, Consulting & Training
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Sales (sale_management)
• Discuss (mail) • Invoicing (account) • Employees (hr) • Website (website) • Purchase (purchase) |
| Community Apps Dependencies |
Show
•
审批流工作流管理,Workflow Management
• 钉钉消息队列,Dingtalk Mail • 欧度智能基础功能及面板,odooAi Common Util and Tools • 钉钉开放平台同步基础模块,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去标大全 • 多平台社交登录绑定, Real SSO Social Login • SaaS云服务客户端 / odooapp.cn SaaS Client - Ai Passport • 往来单位客户供应商拆分,Separate Customer & Vendor in Sale & Purchase |
| Lines of code | 23562 |
| Technical Name |
app_dingtalk_oa |
| 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