
Vendure and Odoo 19
Vendure orders in Odoo. Stock, prices and tracking codes back in Vendure.
Placed orders from your Vendure channel come into Odoo as sales orders with the buyer, both addresses, promotions, shipping, surcharges and taxes. Odoo writes stock and prices back through the Admin GraphQL API and creates the Vendure fulfilment with the tracking code when the parcel leaves.
What it does
You create an API key in the Vendure Dashboard and paste it into Odoo with the Admin API address. Older servers can use a bearer token, and a channel token picks a channel other than the default one. Test Connection reads the administrator, the channel, its currency and whether its prices include tax. Load Locations and Handlers lists the stock locations and the fulfilment handlers of the server.
Import Orders reads the placed orders updated since the last run, by button or every 15 minutes. Vendure keeps money in minor units (10000 is 100.00), so each amount is converted with the decimals of its currency. Each order becomes a sales order with the variant lines, order and line promotions as a line discount, the shipping line, any surcharge and the Odoo tax of the same rate.
A table per channel decides what each Vendure order state does: ignore it, keep a quotation, confirm or cancel. Orders still arranging payment can wait as quotations while settled ones are confirmed.
Validating the delivery in Odoo calls addFulfillmentToOrder for the delivered quantities with the fulfilment handler you chose, the shipping method name as method and the tracking number as tracking code, then moves the fulfilment to Shipped. Delivered and cancel in Vendure are buttons, never automatic.
Who it is for
| Teams on a headless Vendure store who run stock, purchasing or accounting in Odoo | |
| Warehouses that want tracking codes in Vendure without typing them twice | |
| Businesses with several Vendure channels, one connection per channel |
Key features
Screenshots from an Odoo 19 test database. The Vendure answers come from a test stand-in shaped like the Vendure Admin API reference, not a live server.
One record per Vendure channel
Admin API address, authentication, API key (visible to Odoo administrators only) and channel token, with the channel, currency and tax setting read by Test Connection.
| Only https addresses are accepted; local and private network addresses are refused | |
| Warehouse, pricelist, sales team, shipping and surcharge products per channel |

Order state rules
Ten rows, one per default Vendure order state, each set to Ignore, Keep as quotation, Confirm order or Cancel order. A cancelled Vendure order cancels the Odoo order only if nothing was delivered.

Vendure orders in the sales list
Each imported order keeps its Vendure order code and state. One Vendure order is always one Odoo order, and only orders whose state changed are read again.

Lines, promotions, shipping and taxes
Variant lines at the net unit price with the matching tax, the prorated promotion as a discount and the shipping line with its tax. If the totals differ, the chatter says so.

Company buyers and the Vendure tab
A billing address with a company becomes a company contact with the buyer as its contact person. The Vendure tab shows the channel, order ID and code, state and payment method.

Variants and stock side by side
Import Products links each Vendure variant to an Odoo product by SKU and creates the missing ones if you allow it. Stock on hand at the Vendure location sits next to the Odoo stock. It is there to compare: Odoo stock is never changed from it.
| Send Stock: on hand stock to the chosen stock location, or the default stock, 50 variants per call | |
| Send Prices: the sales price or pricelist price in minor units, with tax added when the channel prices include tax | |
| Create in Vendure: an Odoo product becomes an enabled product with one variant, price and stock |

Fulfilment from the delivery
Validating the delivery creates the fulfilment and moves it to Shipped. If Vendure refuses, for example for stock, the delivery still validates, the reason lands in the chatter and Send Fulfilment to Vendure tries again. Mark Delivered in Vendure closes it.

Customers
Import Customers links Vendure customers to Odoo contacts by email, with their customer groups. Only contacts of the channel company or shared contacts are used.

Stock and fulfilment settings
Stock location, language of new product names, the fulfilment handler and the two schedules, both off until you switch them on.

API log
Each GraphQL operation with its HTTP status, time and the answer. The API key never reaches the log.

How it works
| 1 | Create an API key in the Vendure Dashboard: Settings, API Keys. |
| 2 | Add the channel in Odoo Sales, Vendure, Stores: Admin API address and key. Press Test Connection, then Load Locations and Handlers. |
| 3 | Check the state rules and pick the shipping product, stock location and fulfilment handler. |
| 4 | Import Products to link variants by SKU. |
| 5 | Import Orders once by hand; then switch on the 15 minute schedule if you like. |
| 6 | Validate deliveries with the tracking number; the Vendure fulfilment is created and shipped. |
Settings
| Order State Rules | Ignore, keep as quotation, confirm or cancel, per Vendure state |
| Authentication | API key (Vendure 3.6+) or bearer token |
| Channel Token | Work in a channel other than the default one |
| Cancel When Canceled in Vendure | Cancel the Odoo order when Vendure shows it cancelled |
| Stock Location ID | Where Odoo stock is written; empty uses the default stock |
| Fulfilment Handler | manual-fulfillment, or your own handler code |
| Mark Fulfilment Shipped | Move the new fulfilment to Shipped straight away |
| Scheduled Order Import / Scheduled Stock Push | Every 15 minutes, as the Run As user |
FAQ
Which Vendure version does it need?
Any Vendure with the Admin API. API keys need 3.6 or later with api-key in tokenMethod; older servers can use a bearer token.
Does Vendure send webhooks to Odoo?
Vendure has no built-in outgoing webhooks, so placed orders are read by the button or the 15 minute schedule.
How are customers matched?
By the linked Vendure customer, then by email, and only among contacts of the channel company or shared contacts. Company buyers are matched by company name.
Will Odoo change my stock from Vendure?
No. Vendure stock is shown for comparison only. Stock goes from Odoo to Vendure when you press Send Stock or switch on the schedule.
Can I use my own fulfilment handler?
Yes. Put its code in Fulfilment Handler. Odoo sends the arguments method and trackingCode, as the built-in handler expects.
Compatibility and support
Odoo 19 Community and Enterprise. Needs Sales, Inventory and Delivery.
Questions before or after you buy: modvantaapps@gmail.com. We answer setup questions and fix bugs.
Buy Now - $79Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module