Sync Base API Logger
Manage external API calls and webhook logs in one place, with auto-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 with one line of code.
Overview
This module provides a unified API sync logging framework for Odoo. A 3-level configuration hierarchy (Provider → App → Log Type) covers full-chain request logging, auto-retry, token refresh and expired log cleanup. Business modules integrate HTTP request sending and callback receiving 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 complete solution for API log management
1. 3-Level Hierarchy
Provider → App → Log Type
Manage providers, apps and log types in three levels. URL regex matching identifies the log type automatically, with HTTP method, content format, retry count and timeout settings.
2. Bidirectional Logging
Outbound & Inbound
Log outbound requests (method, URL, headers, body and params) and responses (status code, headers, body). Inbound webhook callbacks are received and logged automatically.
3. Auto Retry
Token Refresh & Retry Logic
On failure, the token is refreshed automatically and the request retries as configured. Savepoint isolation protects each record against concurrent conflicts. Token values in params, headers or URLs are updated automatically.
4. One-line Integration
send_httprequest() / receive_httprequest()
Call send_httprequest() to send a request or receive_httprequest() to receive a callback. The framework creates the log, executes the request, retries and records the response, returning a standard Response object.
5. Log Retention
Configurable Retention & Auto Cleanup
Set retention days per log type. A scheduled cron job deletes expired logs in batches; set 0 to keep logs forever. Batch deletion avoids memory overflow.
6. Record Association
res_model / res_id Auto-Link
Link API logs to business records via res_model/res_id. The mixin.slog model adds a log view button to any business object.
General Features
Multi-Language & Multi-Company
Built for global deployment
Complete translation support for global companies. Native multi-company architecture with strict data isolation.
Full Version Support
Odoo 19 to 12, EE/CE/.SH
Supports Odoo 19, 18, 17, 16, 15, 14, 13, 12, Enterprise, Community and online SaaS.
Full Open Source
OPL-1 license
Open source under OPL-1. Transparent, auditable code, ready for customization and secondary development.
Screenshots
A look at the key features
Module Overview
How It Works
Setup Providers
Create API providers and applications
Define Log Types
Define log types with URL patterns
One-line API Call
Call the API with one line of code
Monitor & Analyze
Search logs and analyze request details
Supported & Dependent Modules
- app_odoo_customize — Odoo System Customization
odooai.cn
Professional Odoo Services - Development, Implementation, Consulting and Training
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Community Apps Dependencies | Show |
| Lines of code | 12416 |
| 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