Dingtalk HR
Sync DingTalk departments and employee roster into Odoo HR
Mirror the DingTalk organization tree into Odoo departments.
Match employees smartly by job number, mobile or email, with no duplicates.
Overview
HR data maintained in DingTalk and Odoo quickly drifts apart when it is keyed in twice. This module syncs the DingTalk organization into the Odoo HR modules: the department tree is mirrored into hr.department, and DingTalk contacts become hr.employee records.
Employees are matched smartly - job number first, then verified mobile or email, then the work contact - so re-running the sync updates existing records instead of creating duplicates. DingTalk unionid and userid are written back to the work contact, giving every other DingTalk feature a reliable person map.
Complete Feature List
-
1. One-switch HR sync
Enable "Sync to HR" on the DingTalk config and departments and employees are incrementally synced into hr.department and hr.employee -
2. Department tree sync
The DingTalk department hierarchy is recreated in Odoo departments, keeping the parent-child structure on every run -
3. Two-way department link
Each DingTalk department record stores its mapped Odoo department; each Odoo department stores its DingTalk department ID -
4. Employee roster sync
DingTalk contacts are turned into Odoo employees, with the DingTalk user linked on the employee form -
5. Smart match by job number
Employees are matched first by job number (barcode), so re-syncing never creates duplicate employee records -
6. Smart match by contact
Without a job number, the module matches the address book by verified mobile or email, then falls back to the work contact -
7. Automatic employee creation
When there is still no match, a new Odoo employee is created from the DingTalk contact -
8. DingTalk ID write-back
The DingTalk unionid and userid are written to the employee's work contact and linked to the Odoo user -
9. Incremental and idempotent
Run the sync repeatedly; existing records are updated in place and nothing is duplicated -
10. UI integration
A DingTalk tab on the department form, DingTalk user fields on the employee form, and a "DingTalk Sync" filter in the employee search
Key Highlights
Why the roster stays clean after the first sync
1. Smart Matching
Job number first, contact second
The match chain - job number, verified mobile or email, work contact - resolves a DingTalk member to the right Odoo employee instead of guessing by name.
2. Two-Way Links
Traceable from both sides
Departments and employees keep a bidirectional link to their DingTalk records, so you can always tell where a record came from.
3. Idempotent Sync
Run it as often as you like
Incremental sync updates existing records in place. Nightly runs, manual retries and first-time installs all behave the same.
4. Person Map Ready
unionid and userid on file
DingTalk identifiers written back to the work contact give approvals, messages and attendance features a reliable person map - no extra lookup.
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 departments and users
2. Enable sync
Check "Sync to HR" and the roster smart match option
3. Sync org
Department tree and employee roster land in Odoo HR automatically
4. Verify
Check links on the department DingTalk tab and the "DingTalk Sync" filter
5. Keep current
Re-run the sync anytime; changes are applied incrementally
Supported & Dependent Modules
- app_hr_employee_user
- app_dingtalk_base
odooai.cn
Professional Odoo Solutions: Development, Implementation, Consulting & Training
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Employees (hr)
• Discuss (mail) • Website (website) • Invoicing (account) • Purchase (purchase) |
| Community Apps Dependencies |
Show
•
HR员工自动创建用户 / HR Employee Auto Create User
• 钉钉开放平台同步基础模块,Dingtalk Base openapi and log • 手机号登录注册 / Login Sign-up with Mobile Number • 邮箱真实性验证与验证码,Signup Email Verify • 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 | 22228 |
| Technical Name |
app_dingtalk_hr |
| 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