Product Catalog REST API Full CRUD Synchronizer
by Gardas UdayKiran https://www.linkedin.com/in/udaykirangardas
Product Catalog REST API Full CRUD Synchronizer
Two-way REST API sync for your products â POST, GET, PUT, DELETE â with real-time toasts, a self-healing retry queue, a full audit trail, and a secured inbound API of its own.
FEATURES
Why this module
Everything a real integration needs â not just a POST button.
Outbound POST / PUT / DELETE and inbound GET, each independently switchable, so Odoo and your external system stay in step either direction.
Every automatic sync pushes a live browser notification the instant it completes, success or failure â no refresh needed.
One checkbox stops all outbound calls and hides the product from the inbound API â edit freely, sync nothing.
If the remote record was deleted or expired, the next update re-registers it with a fresh POST automatically â no orphaned products.
/api/v1/products is protected by its own Inbound API Token â generated in one click, shown once, never confused with your outbound key.
Every call, inbound or outbound, is logged: method, URL, JSON payload, HTTP status and latency â list, form and graph views included.
Failed calls retry automatically up to 3 times on a schedule, or on demand with one click â then stop, instead of hammering a dead endpoint forever.
The audit log carries a company-scoped record rule and a read-only access right for ordinary users, out of the box.
WALKTHROUGH
A closer look
Five short captures, taken live against a real Odoo 18 and a real REST API â nothing staged.

1. Edit, save, done
Change the sales price and click Save â Odoo registers the product on your REST API, pops a live toast the instant it completes, and the status banner shows the method, external ID and timestamp.
2. Pause, edit, resume, heal
Pause a product and its edits stay local. Re-enable it and the latest data is pushed. If the remote record had meanwhile vanished (HTTP 404), the module heals itself with a fresh POST â all in one capture.


3. Pull it back in, one or many at a time
"Pull from API (GET)" reads a single product back from the remote side with no outbound loop. Select a batch in the list view and the same bulk Sync / Pull actions run across all of them at once.
4. Your own token, your own API
Generate an Inbound API Token with one click, copy it from the dialog, then watch real curl calls â GET, POST, PUT, DELETE â hit /api/v1/products and get refused without it.


5. A control center, not a black box
Test the connection, sync everything unsynced, retry a failed call with one click, and browse the audit log as a list, a form, or a graph.
HOW IT WORKS
One edit, four steps, zero manual work
1. Create or edit
in the product form, as usual
2. Odoo calls out
POST or PUT, if enabled
3. Your REST API
receives real JSON
4. Logged & confirmed
toast, banner, audit row
RELIABILITY
Built to survive the real internet
APIs time out, tokens get typed wrong, and two people click the same button at once. This module is tested against all of it.
SETTINGS
You stay in control
Everything lives in Settings â General Settings â Product REST API CRUD Integration.
| Setting | What it controls | Default |
|---|---|---|
| REST API Base URL | The external API's collection endpoint | api.restful-api.dev (demo) |
| Outbound API Key | Sent as Authorization: Bearer to the external API | empty (optional) |
| Request Timeout | Seconds to wait for the external API | 15 (5â120) |
| Inbound API Token | Required of every caller of Odoo's own /api/v1/products writes | none â generate one |
| Auto-Create / Update / Delete | Automatic outbound sync on create / edit / delete | off |
| Auto-Pull | A 15-minute job that refreshes every synced product from the API | off |
| Keep API Logs (days) | Audit log retention; 0 keeps every row forever | 30 days |
GET STARTED
Up and running in minutes
from your Apps list
and Test the connection
to secure the inbound API
or sync your catalog in bulk
COMPATIBILITY
Requirements
| Odoo version | 18.0 â Community & Enterprise |
| Depends on | product, stock, bus â all standard Odoo modules |
| Extra Python packages | requests (already shipped with a standard Odoo install) |
| Hosting | On-premise or Odoo.sh, with outbound HTTPS access to the API you configure |
| License / version | LGPL-3 · 18.0.1.0.0 |
Data Privacy & Security
For every synchronized product, this module sends: product name, internal reference (SKU),
sales price, cost price, product type, category, barcode, active flag, the
Odoo database ID, and the company name â only to the outbound REST API URL you
configure. The default URL is a public demo service
(api.restful-api.dev) meant for testing only; review this list against your own
data-handling policy before pointing it at a production endpoint with real company data.
The module's own inbound endpoints are protected by a separate Inbound API Token, shown only once in a copy dialog and compared in constant time. Inbound writes are refused until that token exists, and the audit log is read-only for regular users and scoped per company.
FAQ
Questions, answered
What's the difference between the Outbound API Key and the Inbound API Token?
The Outbound API Key is sent to your external API. The Inbound API Token is required of anyone calling Odoo's own /api/v1/products. They are two independent secrets; neither is ever sent to the other side.
Does pausing a product really stop every call?
Yes. While "Enable REST API Sync" is off, the product makes zero outbound calls, every manual button is blocked with a warning, and it is excluded from the inbound API's list and single-record endpoints.
What happens if the remote record gets deleted on the external side?
The next PUT gets a 404, and the module automatically falls back to a fresh POST, replacing the dead external ID â no manual re-registration needed.
How many times does a failed call get retried?
Up to 3 attempts, either from the scheduled retry queue or a manual click on Retry, after which the log row stays "Failed" instead of retrying forever.
Can two people click "Create on API" on the same product at once?
A database row lock serializes it: the first click registers the product, and the second is told it is already registered â never two remote records for one product.
What data does this module send to my external API?
Name, SKU, sales price, cost price, type, category, barcode, active flag, Odoo ID and company name â see the Data Privacy section above.
Can I use my own REST API instead of the demo one?
Yes â that is the point. Point the REST API Base URL at any endpoint that accepts the same JSON shape (or adapt your own endpoint to match); the demo URL is only a safe default for trying the module out.
Will pulling data from the API ever trigger an outbound call back?
No. Every pull writes to Odoo under a context flag that skips the outbound hooks, so GET can never cause a PUT.
What happens if one product fails during a bulk sync or pull?
Each product is processed in its own database savepoint. One failure â a conflicting barcode, say â is logged and skipped; it never aborts the rest of the batch.
Is the audit log safe for a multi-company database?
Yes â a record rule scopes every row to the companies the current user can access, and the log itself is read-only for anyone who isn't a product manager.
CHANGELOG
What's new
18.0.1.0.0 â Initial release
- Full outbound CRUD (POST / GET / PUT / DELETE) with per-product pause and 404 self-heal.
- Secured inbound REST API (
/api/v1/products) with its own generated token. - Audit log with list, form and graph views, a 3-attempt retry queue, and configurable retention.
- Bulk sync and pull, from Settings and from the product list.
- Multi-company record rule and read-only access for the audit log.
- 79 automated tests covering outbound sync, the inbound API, retries, permissions and multi-company isolation.
AUTHOR
Built by
Connect for free customizations, collaboration, or explore more Odoo 18 apps from the same author.
Gardas Udaykiran
I build and publish open-source Odoo 18 apps â contacts enrichment, Point of Sale tools, login security, and REST API integrations. All of them are on the Odoo Apps Store and in one GitHub repository.
More apps by Gardas Udaykiran
Product Catalog REST API Full CRUD Synchronizer · v18.0.1.0.0 · LGPL-3
© Gardas Udaykiran â built for real production use.
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Inventory (stock)
• Discuss (mail) |
| Lines of code | 1771 |
| Technical Name |
product_rest_api_crud |
| License | LGPL-3 |
| Website | https://www.linkedin.com/in/udaykirangardas |
Please log in to comment on this module