Miravia Store Management
Miravia Store Management connects a Miravia seller account (Miravia Spain, miravia.es) to Odoo through the Miravia Open Platform. This page is the installation and configuration guide for the miravia_store_management module as it ships today.
| Technical name | miravia_store_management |
| Odoo versions | 17.0, 18.0, 19.0, 20.0 (Community or Enterprise) |
| Current shipped version | 17.0 → 17.0.1.1.4, 18.0 → 18.0.1.1.4, 19.0 → 19.0.1.1.4, 20.0 → 20.0.1.1.4 |
| Price | $349 USD — one-time, per Odoo version |
| Odoo module licence | OPL-1 on every version — no licence key, no activation step |
| Category | Connector |
Requirements
| Requirement | Detail |
|---|---|
| Odoo | 17.0, 18.0, 19.0 or 20.0, Community or Enterprise. Self-hosted or Odoo.sh — Odoo Online (SaaS) cannot install third-party modules |
| Odoo apps | base, sale_management, stock, account, delivery, mail, web, portal, product, contacts, digest — Odoo installs any that are missing |
| Python packages | requests |
| Platform account | A Miravia seller account and an app on the Miravia Open Platform (App Key and App Secret) |
| Public HTTPS | Odoo's web.base.url must be an HTTPS address Miravia can reach (OAuth callback and webhooks) |
Installation
- Download the ZIP for your Odoo major version from where you purchased the module.
- Extract it into your addons path so that
miravia_store_management/__manifest__.pysits directly insidemiravia_store_management/. - Restart Odoo, click Apps → Update Apps List, search for Miravia Store Management and click Install. The module declares no licence dependency and has no activation step.
Configuration
Connect to Miravia
Open Miravia → Configuration → Instances and create an instance (model miravia.instance).
| Field | Technical name | Notes |
|---|---|---|
| App Key | app_key | Required. From the Miravia Open Platform |
| App Secret | app_secret | Required. Signs every request (HMAC-SHA256) |
| Seller ID | seller_id | Filled in by the consent flow |
| Access Token / Refresh Token | access_token / refresh_token | Filled in by the consent flow; the access token is renewed automatically before it expires and by a daily job |
| Company, Warehouse, Journal, Pricelist, Salesperson | — | Where imported orders and invoices land |
| Discount and Shipping products | discount_product_id, shipping_product_id | Lines for the discounts and shipping Miravia billed |
Then:
- Click Connect to Miravia and complete Miravia's seller consent at
auth.miravia.es. - Click Test Connection. The instance becomes connected only when Miravia answers (it reads your seller record). Do not run a first import before that.
Public URLs
Register these HTTPS addresses in the Miravia Open Platform application console:
| URL | Purpose |
|---|---|
https://<your-odoo>/miravia/callback | OAuth callback for Connect to Miravia (GET, public; the state value is verified) |
https://<your-odoo>/miravia/webhook/<id> | Push notifications for the webhook subscription with that id (POST, public). The route checks the topic and an HMAC-SHA256 signature in the X-Miravia-Hmac-Sha256 header against the subscription's secret before anything is queued; a bad signature gets HTTP 401 |
Miravia registers push callbacks in its own console; Odoo does not register them for you. When you create a webhook subscription in Odoo, the connector prepares the signed receiver and shows the exact URL to paste into the console; deleting the subscription stops the receiver and reminds you to remove the URL there. No Miravia API is called for either step.
Stock export
Stock is sent only for Miravia locations with an export warehouse mapped (Miravia → Configuration → Locations → Warehouse Mapping) and only for products mapped to a Miravia item. The quantity is the sellable quantity of the mapped warehouses, sent with UpdateSellableQuantity in Miravia's published request shape, at most 50 products per request.
Scheduled actions
The module installs 14 scheduled actions (Settings → Technical → Scheduled Actions):
| Scheduled action | Runs every |
|---|---|
| Miravia: Process Queue Jobs | 5 minutes |
| Miravia: Sync Inventory | 10 minutes |
| Miravia: Process Workflows | 10 minutes |
| Miravia: Sync Orders | 15 minutes |
| Miravia: Sync Products | 30 minutes |
| Miravia: Import Refunds | 30 minutes |
| Miravia: Auto Risk Detection | 30 minutes |
| Miravia: Sync Customers | 60 minutes |
| Miravia: Webhook Health Check | 60 minutes |
| Miravia: Generate Analytics | 4 hours |
| Miravia: Import Payout Reports | 6 hours |
| Miravia: Renew Access Tokens | 1 day |
| Miravia: Cleanup Old Logs | 24 hours |
| Miravia: Daily Summary Report | 1 day |
Access groups
| Group | What it may do |
|---|---|
| Miravia User | Read Miravia records |
| Miravia Finance | Edit payouts and their transactions |
| Miravia Operations | Edit carriers |
| Miravia Analytics | Edit analytics reports |
| Miravia Manager | Run the state-changing buttons: validate a payout, activate/deactivate a carrier or workflow, generate analytics, assess/resolve a risk, create a credit note, create/delete a webhook subscription, test the connection |
| Miravia Administrator | Everything above, with full access to every Miravia model |
Since 1.1.2 a state-changing button refuses anyone outside the Miravia Manager group (the Administrator group includes it). Scheduled actions are not affected.
Using the module
The Miravia menu is laid out as: Dashboard · Orders · Refunds · Products · Customers · Payouts · Analytics · Operations (Run Operations, Queue Jobs, Logs) · Configuration (Instances, Locations, Payment Gateways, Scheduled Actions, Webhooks).
- Orders are keyed by their Miravia order ID: a re-import updates the same sale order. One failing order rolls back alone.
- Buyers come in with their orders (Miravia offers no buyer-list API). The order import and the customer import share one resolver — e-mail, then phone, then exact name — so a buyer is filed once.
- Fulfilment: when an Odoo delivery is done, the order is fulfilled at Miravia with the carrier and tracking number.
- Returns import every 30 minutes; the Create Credit Note button turns one into an Odoo credit note linked to the sale order.
- Payouts: automatic payout import is not part of this release (Miravia documents no payout response). Enter the Seller Centre settlement statement as a payout with its transaction lines, create the bank statement and reconcile.
- Dashboard: KPI cards and charts over Today, 7 days, 30 days, 90 days, the year or a custom range. Reading it writes nothing.
Troubleshooting
| Symptom | Cause and fix |
|---|---|
| Test Connection fails | Re-check App Key and App Secret, then click Connect to Miravia again. |
| "Only a "Miravia Manager" can run this action." | The button changes a record's state; ask an administrator to add you to Miravia Manager. |
| Nothing syncs although connected | The scheduled actions are disabled, or Odoo's cron worker is not running (--max-cron-threads > 0). |
| No stock reaches Miravia | No export warehouse is mapped on the Miravia location, or the product has no Miravia mapping. |
| Webhook deliveries get HTTP 401 | The subscription's secret does not match the one Miravia signs with, or the subscription is not active. |
| "Automatic payout import is not part of this release" | Expected: enter the statement in the payout workspace. |
Version history
| Odoo version | Version you download today |
|---|---|
| 17.0 | 17.0.1.1.4 |
| 18.0 | 18.0.1.1.4 |
| 19.0 | 19.0.1.1.4 |
| 20.0 | 20.0.1.1.4 |
1.1.4 (2026-11-15): the Run Operations window no longer opens with a pop-up notice that could cover the Execute button on a phone; a short description of the selected operation now appears directly under Operation and changes when you pick another one.
1.1.3 (2026-11-14): the connector no longer calls any route that is missing from Miravia's published API catalog (webhook callbacks are registered in the Open Platform console, see Public URLs); the App Secret, carrier API secret and webhook secret key refuse a value with a space, tab or line break, or a documentation placeholder, when you save it. The same release brings Odoo 20.0, and all four editions carry the import fixes: imports read the envelope Miravia's gateway sends, Sync Now runs the import, each size keeps its own product, an order in a foreign currency needs a pricelist in that currency, a failed run reads as failed, Analytics opens for the Analytics role, and the dashboard follows a dark theme.
1.1.2 (2026-10-28): state-changing buttons need the Miravia Manager group; risk assessment works again; one buyer resolver for order and customer imports; order dates keep their day when Miravia sends an offset without a colon; the dashboard no longer writes when it is read; the webhook route verifies the signature itself; unused settings and the unused ApexCharts library removed. The Odoo 17 and 18 editions now carry the whole 1.1 release (automatic token renewal, stock export, catalog-checked fulfilment, returns and token routes).
ECOSIRE module versions are <odoo major>.<module major>.<minor>.<patch>, so 19.0.1.1.4 is the Odoo 19 build of module version 1.1.4. Your installed version is shown in Apps.