External Sync
Connect PrepStation to external systems to automatically sync sales data. Currently supports Odoo ERP, with more integrations planned.
Overview
External sync lets you:
- Connect to your existing business systems
- Automatically import sales orders and line items
- Keep data updated with scheduled syncs
- Feed production planning with real sales data
External System (Odoo)
↓
Sales Orders
↓
Sales Records
↓
Production Planning
Supported Systems
| System | Status | Description |
|---|---|---|
| Odoo | ✓ Supported | ERP with sales order management |
| POS Systems | Planned | Coming soon |
Setting Up External Sync
Accessing External Sync
Navigate to Integrations → External Sync
Or go directly to /external_sync
Creating a Connection
- Click Add Connection or New Configuration
- Select the System Type (Odoo)
- Enter your connection details
- Test the connection
- Click Save
Odoo Configuration
Connection Details
| Field | Description | Example |
|---|---|---|
| URL | Your Odoo instance URL | https://mycompany.odoo.com |
| Database | Odoo database name | mycompany_production |
| Username | Odoo user email | api@mycompany.com |
| API Key | Odoo API key or password | abc123... |
Getting Your Odoo API Key
- Log into Odoo as an admin
- Go to Settings → Users
- Select the API user
- Go to Account Security
- Generate an API Key
- Copy the key (it won't be shown again)
Tip
Create a dedicated API user for PrepStation with read-only access to sales orders.
Testing the Connection
After entering your credentials:
- Click Test Connection
- Wait for verification
- Green checkmark = success
- If it fails, check your credentials and URL
Sync Settings
Sync Modes
| Mode | Description |
|---|---|
| Manual | You trigger each sync |
| Automatic | Scheduled recurring syncs |
For Automatic Sync
Configure the schedule:
| Setting | Description | Example |
|---|---|---|
| Interval | How often to sync | Every 1 hour |
| Batch Size | Records per sync | 100 |
| Active | Enable/disable auto-sync | On/Off |
Running a Sync
Manual Sync
- Go to External Sync
- Find your connection
- Click Sync Now
- Wait for completion
- Review the results
What Gets Synced
From Odoo sales orders:
| Data | Description |
|---|---|
| Order info | Order number, date, customer |
| Line items | Products, quantities, prices |
| Status | Confirmed, done, cancelled |
| Delivery | Expected delivery dates |
Sync Status
| Status | Meaning |
|---|---|
| Pending | Sync queued |
| Running | Currently syncing |
| Completed | Finished successfully |
| Failed | Error occurred |
| Resolution Required | Needs manual mapping |
After Syncing
Review Sales Records
Synced data appears as Sales Records:
- Go to Sales → Sales Records
- Review imported orders
- Map any unmapped items
- Data flows to production planning
Handling Updates
When you sync again:
- New orders are added
- Changed orders are updated
- Cancelled orders are marked as cancelled
- No duplicates are created
Troubleshooting
Connection Failed
| Issue | Solution |
|---|---|
| Invalid URL | Check the URL format (include https://) |
| Authentication error | Verify username and API key |
| Database not found | Check the database name |
| Network error | Verify firewall/network access |
Sync Errors
| Issue | Solution |
|---|---|
| Timeout | Reduce batch size |
| Rate limited | Increase sync interval |
| Missing data | Check Odoo permissions |
Data Issues
| Issue | Solution |
|---|---|
| Orders not appearing | Check date range filters |
| Wrong quantities | Verify Odoo order status |
| Missing items | Ensure products have the correct fields |
Security
Credentials Storage
- Credentials are encrypted at rest
- API keys are never displayed after saving
- Only admins can view/edit connections
Data Access
- Sync uses read-only access to Odoo
- PrepStation never modifies your Odoo data
- All synced data stays in your PrepStation account
Common Questions
Q: How often should I sync?
A: For busy operations, hourly. For planning purposes, daily is usually sufficient.
Q: Does syncing affect my Odoo system?
A: No. PrepStation only reads data, never writes to Odoo.
Q: What if I delete a connection?
A: Previously synced data remains in PrepStation. Only new syncs stop.
Q: Can I filter which orders sync?
A: Yes. Configure domain filters to sync only confirmed/done orders.
Q: Is my data secure?
A: Yes. Credentials are encrypted and data is scoped to your account.
Next Steps
- Sales Records — Work with synced sales data
- Production Planning — Use sales for production
Last updated: March 23, 2026