Skip to main content

Order Management

The Magento 2 Connector supports full bidirectional order management. You can pull orders from Magento into Odoo for fulfillment, or create orders in Odoo and push them to Magento.

Accessing Magento Orders

Navigate to Magento > Sales > Orders to view all synced orders.

Sales menu showing order options

Order List View

The order list displays all synchronized orders with key details:

Magento Orders list view

ColumnDescription
NumberOdoo sale order reference (e.g., S00111)
MagentoMagento order increment ID
Magento IDMagento internal order ID (e.g., 0000000008)
Magento StatusOrder status in Magento (processing, closed, etc.)
Magento InvoiceInvoice status (Invoiced, Not Invoiced)
Magento AmountOrder total amount in Magento
Magento PaidPayment status (Paid, Not Paid)
Delivery StatusDelivery status (Not Delivered, Started, Delivered)
Magento InstanceThe Magento instance this order belongs to
Order DateDate and time the order was placed

Order Form

Click on an order or click New to view the full order form:

Magento Order form view

The order form includes:

  • Customer -- The linked Odoo customer/partner
  • Quotation Template -- Optional quotation template
  • Quotation Date -- Date of the quotation
  • Expiration -- Order expiration date
  • Payment Terms -- Payment terms (e.g., Immediate)
  • Order Lines -- Products, quantities, unit prices, taxes, and amounts
  • Optional Products / Other Info / Customer Signature tabs

Order Action Buttons

ButtonDescription
Send by EmailEmail the order/quotation to the customer
ConfirmConfirm the quotation as a sale order
PreviewPreview the order in the portal
Create in MagentoPush this order to Magento
Pull from MagentoImport this order's latest data from Magento
Update in MagentoPush order updates to Magento

Pull Workflow (Magento to Odoo)

When pulling orders from Magento, the connector follows this workflow:

  1. Fetch Orders -- The connector queries the Magento REST API for new or updated orders.
  2. Resolve Customer -- The customer is matched to an existing Odoo partner (by email) or a new partner is created.
  3. Resolve Products -- Each order line item is matched to an Odoo product (by SKU or Magento product ID).
  4. Create Sale Order -- A new sale order is created in Odoo with all line items, quantities, and prices.
  5. Register Payment -- If the order is paid in Magento and auto-payment registration is enabled, a payment is recorded.
  6. Update Status -- The Magento order status, invoice status, and payment status are stored on the Odoo record.
info

Orders are matched by Magento Order ID to prevent duplicates. If an order already exists in Odoo, it is updated rather than recreated.

Push Workflow (Odoo to Magento)

When pushing orders from Odoo to Magento:

  1. Create Quotation -- Create a new sale order in Odoo with the desired products and customer.
  2. Select Instance -- Ensure the order is associated with a Magento instance.
  3. Add Products -- Add order line items with products that are mapped to Magento products.
  4. Confirm Order -- Confirm the quotation to convert it to a sale order.
  5. Push to Magento -- Click Create in Magento to push the order to your Magento store.
tip

For push operations, ensure the products and customer already exist in Magento (or have been synced). The connector uses the Magento product ID and customer ID to create the order.

Order Status Mapping

Magento StatusOdoo Equivalent
pendingQuotation
processingSale Order (confirmed)
completeSale Order (delivered)
closedSale Order (closed/refunded)
canceledCancelled
holdedOn Hold

Next Steps