Inventory Sync
Configure inventory synchronization between Odoo and Shopify with instant or periodic sync options.
Recommended Inventory Settings
For best results, keep your product sync flow and inventory sync direction the same. If your products sync from Odoo to Shopify, your inventory should also sync from Odoo to Shopify. This ensures consistent data flow and prevents sync conflicts.
Inventory Sync Direction
The inventory sync direction must match your product sync direction. Choose how inventory flows between systems:
- Odoo to Shopify: Sync inventory from Odoo to Shopify
- Shopify to Odoo: Sync inventory from Shopify to Odoo
Important
The inventory sync direction must match your product sync direction. If products sync from Odoo to Shopify, inventory should also sync from Odoo to Shopify.
Sync Only Available Inventory
Control whether to sync negative inventory values:
- Disabled: Syncs all inventory values, including negative stock
- Enabled: Syncs only products with positive/available stock in Odoo
When enabled, only products with available inventory will sync to Shopify.
Auto Sync
Enable automatic inventory synchronization:
Sync Modes
Periodic Sync (Default)
- Syncs inventory at scheduled intervals
- Set duration (e.g., 30 minutes, 1 hour, 1 day)
- Runs automatically based on your schedule
Instant Sync via Webhooks
- Real-time inventory updates
- Syncs immediately when inventory changes
- Requires base_automation module in Odoo
Instant Sync Requirement
For instant sync from Odoo to Shopify, you need the base_automation module installed in Odoo. Without this module, instant sync will not work.
Instant Sync Setup
When you enable instant sync, the system automatically registers webhooks:
For Odoo to Shopify:
- Webhook registration happens automatically
- You'll see a success message: "Webhook registration completed successfully!"
- Inventory updates sync in real-time when stock changes in Odoo
For Shopify to Odoo:
- Webhooks are registered automatically in the background
- Inventory updates sync in real-time when stock changes in Shopify
How It Works
Odoo to Shopify Sync
-
Periodic Sync:
- Runs at scheduled intervals
- Fetches inventory from Odoo
- Updates Shopify product inventory
- Respects "Sync Only Available Inventory" setting
-
Instant Sync:
- Webhook triggers when Odoo inventory changes
- Immediately updates Shopify inventory
- Requires base_automation module
Shopify to Odoo Sync
-
Periodic Sync:
- Runs at scheduled intervals
- Fetches inventory from Shopify
- Updates Odoo product inventory
-
Instant Sync:
- Webhook triggers when Shopify inventory changes
- Immediately updates Odoo inventory
- Registered automatically in background
Manual Inventory Sync
You can manually trigger inventory sync at any time:
- Click Manual Sync button
- Syncs all products immediately
- Works for both sync directions
- Respects your inventory sync settings
Best Practices
- Match Directions: Keep inventory sync direction same as product sync direction
- Use Instant Sync: For real-time updates, enable instant sync (requires base_automation module)
- Filter Stock: Enable "Sync Only Available Inventory" to avoid syncing negative stock
- Monitor Sync: Check sync logs to ensure inventory updates are working correctly
Support
If you need help with inventory sync:
- Email: support@techspawn.com
- Documentation: Check our help center for detailed guides