Sync Base API Logger
Unified management of external API call and callback logs, with automatic retry, Token refresh, and log retention policies
Centralized API sync logging framework with auto-retry, token refresh and log retention policy.
Send, receive, and trace external API calls end-to-end with a single line of code.
Overview
This module provides Odoo with a unified API sync log management framework. Through a three-level configuration hierarchy of provider → application → interface type, it delivers full-chain logging of external API calls, automatic retry, Token refresh, and expiry cleanup. Business modules integrate complete HTTP request sending and callback receiving capabilities with just one line of code.
This module provides a unified API sync logging framework for Odoo. With a 3-level hierarchy (Provider → App → Log Type), it enables full-chain request logging, auto-retry with token refresh, and configurable log retention. Business modules integrate with just one line of code via send_httprequest() / receive_httprequest().
Key Highlights
A one-stop solution for API log management
3-Level Hierarchy
Provider → App → Log Type
Three-level management of providers, applications, and interface types; URL regex matching auto-identifies interface types, with configurable HTTP methods, content formats, retry counts, and timeouts.
Bidirectional Logging
Outbound & Inbound
Fully records outgoing requests (method, URL, headers, body, params) and response data (status code, response headers, response body); inbound Webhook callbacks are also received and logged automatically.
Auto Retry
Token Refresh & Retry Logic
On failure, outgoing requests automatically refresh the Token and retry per the configured number of attempts; each record is processed in an isolated Savepoint to prevent concurrency conflicts, with automatic Token updates in params/headers/URL.
One-line Integration
send_httprequest() / receive_httprequest()
Business modules send requests via send_httprequest() or receive callbacks via receive_httprequest(); log records are created, requests executed, retries and responses recorded automatically, and a standard Response object is returned.
Log Retention
Configurable Retention & Auto Cleanup
Configure log retention days per interface type; scheduled jobs batch-delete expired logs, with 0 meaning permanent retention, and deletion is batched to avoid memory overflow.
Record Association
res_model / res_id Auto-Link
API logs are automatically linked to business records via res_model/res_id, and the mixin.slog mixin lets any business model quickly add a log view button.
General Features
Multi-Language & Multi-Company
Multi-Language & Multi-Company
Full multi-language translation support for global deployments. Native multi-company architecture with strict data isolation.
Full Version Support
Full Version Support
Works with Odoo 19, 18, 17, 16, 15, 14, 13, 12, EE/CE/.SH, compatible with Enterprise, Community and online SaaS
Full Open Source
Full Open Source
Open-sourced under the OPL-1 license with transparent, auditable code; supports secondary development and customization.
Screenshots
Key features at a glance
Module Overview
How It Works
Configure providers
Setup Providers
Define interface types
Define Log Types
One-line-of-code calls
One-line API Call
Log monitoring and analysis
Monitor & Analyze
Supported & Dependent Modules
- Odoo System Customization
odooai.cn
Professional Odoo Solutions: Development, Implementation, Consulting & Training
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Community Apps Dependencies | Show |
| Lines of code | 15409 |
| Technical Name |
app_sync_base |
| 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