A merchant who builds canoes to order asked MESA's site assistant a question that a lot of made-to-order manufacturers run into sooner or later. Each canoe has somewhere between 7 and 12 option categories: hull length, layup material, seat style, gunwale wood, deck color, and so on. Those choices decide which components go into the boat, how much material each one takes, what it costs, which combinations aren't allowed, and ultimately the bill of materials the shop floor builds from. Shopify sells it. Odoo manufactures it. The question was how to get from one to the other without someone retyping every configuration.
The short answer: MESA can do it, but not with a one-click template, because every configurator's rules are different. Every piece it needs already exists, though. This guide walks through the build we'd recommend: a paid Shopify order goes in, its options are checked against your own rules, and a draft Odoo manufacturing order with a bill of materials for that exact configuration comes out.
TL;DR: there's a template for that
Why this doesn't fit Shopify variants
Shopify's own product model sets the first constraint. From the Shopify Help Center:
"Each product can have up to three options."Shopify Help Center
The same page says a product can now have up to 2,048 variants, which helps stores with large size and color grids. It doesn't help a configurable product. Three options is a hard ceiling no matter how many variants you're allowed, and 7 to 12 option categories multiply out to far more combinations than 2,048 anyway. Even if they didn't, nobody wants to maintain thousands of variants that mostly never sell.
So configurable products almost always use a product options app, such as Infinite Options or Hulk Product Options, that saves each choice on the order as a line item property. (If you're still picking one, our comparison of Shopify product options apps covers the main choices.) That gets the order placed. What it doesn't do is tell Odoo anything. The configuration arrives as a list of text name and value pairs on a line item, and someone has to translate it into components and quantities.
The Odoo side: variants, or a bill of materials per order
Odoo does have a built-in way to share one bill of materials (BoM) across product variants. Odoo's documentation describes it like this:
"Odoo allows one bill of materials (BoM) to be used for multiple variants of the same product."Odoo documentation
Each component line gets an Apply on Variants value, and a line with none applies to every variant. If your product has a handful of options that each swap one component, that's the cleanest setup: create the variants in Odoo, map each Shopify order line to the matching Odoo variant, and let Odoo's own BoM do the rest.
It stops working when quantities depend on combinations of choices (a longer hull needs more cloth and more resin, in amounts that depend on the layup), when some combinations are forbidden, or when the options simply produce too many variants to manage. For that case, the build below creates a one-off BoM for each configured order: a normal Odoo BoM record whose component lines are exactly what this unit needs, referenced by a manufacturing order. Odoo's manufacturing data model is built from three records you can create through the API:
- mrp.bom: the bill of materials itself (the product it builds, the quantity it produces, its type, and a reference).
- mrp.bom.line: one row per component, with the component product and its quantity, linked to the BoM.
- mrp.production: the manufacturing order, pointing at the product, quantity, and BoM, with a source document field for the Shopify order number.
MESA's Odoo connector doesn't have dedicated BoM or manufacturing order actions, but it has Custom Model actions (Create, Retrieve, Update, List, and Delete) for exactly this. You pick the action and name the Odoo model you want to work with. MESA's Odoo docs also note that every Odoo edition is supported, including Standard Online, with no Enterprise or custom module needed.
The workflow at a glance
- Shopify: Order Paid starts the workflow.
- Loop over the line items, with a Filter that keeps only configurable products.
- Data: Query reads your configuration rules.
- Custom Code maps the options to components and quantities, and re-checks price and compatibility.
- A Filter sends anything that doesn't check out to review instead of production.
- Odoo: List Custom Model finds each component's Odoo ID.
- Odoo: Create Custom Model creates the BoM, then one BoM line per component.
- Odoo: Create Custom Model creates the manufacturing order in draft.
Step 1: Start on a paid order
Use the Shopify: Order Paid trigger rather than Order Created. A made-to-order item commits real materials and shop time, so it's worth waiting until payment is captured. The trigger's payload includes every line item with its properties, so you don't need a separate step to read the options. (If you use Infinite Options, MESA also has an Infinite Options connector with its own Order Created trigger, but the Shopify trigger already carries the same properties.)
Add a Loop over the line items, then a Filter that passes only the configurable ones. A SKU prefix (everything starting with CANOE-, say) or a product tag both work. Accessories and stock items in the same order skip the rest of the workflow, or go to your normal order sync if you also run the standard Shopify to Odoo order sync.
Step 2: Keep your rules in MESA Data, not in the order
This step matters most, and it's the one most quick builds skip. Line item properties are set in the shopper's browser, and nothing stops a determined (or confused) customer from submitting a combination your product page would never offer, or a price that doesn't match it. If the workflow takes those properties at face value, bad data goes straight to the shop floor.
So keep the real rules somewhere the customer can't touch. MESA's built-in database works well for this:
"The Data tool lets you save and read information in a private database built into MESA."MESA documentation
Make a table with one row per option value, for example:
- model: the configurable product, e.g.
CANOE-16 - option and value: e.g.
Layup/Carbon - component: the Odoo internal reference of the part it adds, e.g.
CLOTH-CARBON - quantity and unit: how much of that component this choice uses
- price: what this choice adds to the price
- incompatible_with: option values it can't be combined with
A Data: Query step pulls every row for the line item's model. If a choice adds more than one component, give it more than one row.
Step 3: Map options to components with Custom Code
A Custom Code step is where the configuration actually gets translated. MESA's Custom Code runs JavaScript, and for this job it does four things:
- Reads the line item's properties and matches each one to its rule rows.
- Builds the component list, adding up quantities when two choices use the same component (base hull cloth plus extra for a longer length, for example).
- Checks the
incompatible_withcolumn and flags any forbidden combination, plus any property value with no rule at all. - Recomputes the price from the rules and compares it with what the line item actually charged.
It returns the component list and a single valid true or false. Keeping this logic in one step, driven by the table, means a new option value is a new row in MESA Data, not a workflow edit.
Follow it with a Filter on valid. When it's false, stop here and tag the Shopify order (an Order Add Tag step with something like config-review) so a person looks at it before anything is built. If you want a durable record of exactly what was checked, add a Data: Create Record step that saves the order number, line item, validated configuration, and component list. That gives you a configuration record you trust, separate from the editable text on the order.
Step 4: Create the bill of materials in Odoo
Odoo references components by ID, not by your internal reference, so first use Odoo: List Custom Model on the product.product model to look up each component by its internal reference (default_code). If any component isn't found, treat that the same as an invalid configuration and send the order to review. A BoM with a missing line is worse than no BoM.
Then create the BoM with Odoo: Create Custom Model on mrp.bom:
- product_tmpl_id: the Odoo product for the configurable model (the canoe itself)
- product_qty: 1
- type:
normal, which is "Manufacture this product" in Odoo's interface (as opposed to a kit) - code: the Shopify order number and line, so anyone in Odoo can tell which order this BoM was built for
Next, a second Loop over the component list with one more Create Custom Model step on mrp.bom.line, setting bom_id to the BoM you just created, product_id to the component's ID, and product_qty to its quantity. After the first test run, open the BoM in Odoo and compare it line by line with the configuration. That's the quickest way to catch a unit or rounding mismatch in your rules table.
Field names can differ slightly between Odoo versions and with custom modules. Click Retrieve Fields in the Odoo step to load the fields your database actually has, and do it again after changing anything in Odoo.
Step 5: Create the manufacturing order
The last step is another Odoo: Create Custom Model, this time on mrp.production:
- product_id: the product variant being built
- product_qty: the line item quantity
- bom_id: the BoM from step 4
- origin: the Shopify order number, which shows as the source document
Leave the manufacturing order in draft. Confirming it is when Odoo reserves components and schedules the work, and that's a decision your planner should make in Odoo, at least until you've run enough real orders through to trust the rules. Once you do, a Slack or email step at the end can tell the shop floor a new build is waiting.
You can start from a prompt template that sets up this whole sequence in MESA's builder, then plug in your own rules table and Odoo product IDs:
What to know before you build
- Odoo is a Pro-tier connector. On MESA's pricing page, Odoo is one of the Pro-tier apps available starting on the Pro plan ($99 a month, 50,000 tasks). There's no separate connector fee.
- Count your tasks per order. MESA counts a task "every time a step in your workflow actually runs" (Loop and Paths steps themselves don't count), and steps inside a loop run once per item, so a canoe with 15 components runs the BoM line step 15 times. Work out one realistic order in the builder's test mode and multiply by your monthly volume.
- Plan for one-off BoMs piling up. Every configured order adds a BoM. That's the point, since each one is the record of what was built, but archive old ones in Odoo periodically so the BoM list stays usable.
- Start with one model. Build the rules table for your best-selling configurable product first, run it in parallel with your current process for a couple of weeks, then add the others.
- Keep the options visible in Shopify too. Customer service will still be asked "what did I order?", so many stores also copy product options into the order notes.
Raw materials have to come into Odoo before anything gets built. If your receiving team logs deliveries on a form or spreadsheet, see how to create Odoo receipts with lot numbers from a Google Sheets receiving form.
FAQs
Can I use Odoo product variants instead of a BoM per order?
Yes, if your options are few and each one swaps components without changing quantities in combination. Set up the variants in Odoo, use Apply on Variants on the BoM lines, and have the workflow create a manufacturing order for the matching variant. A per-order BoM is for products with too many combinations to manage as variants.
Does this work with Hulk Product Options or other options apps?
Yes, as long as the app saves choices to the order as line item properties, which most do. The Custom Code step reads the property names, so match the names in your rules table to exactly what your app writes on the order.
Can MESA confirm the manufacturing order automatically?
This build deliberately leaves it in draft so a planner confirms it in Odoo. Once you trust the rules, you can review whether automatic confirmation suits your shop, but a draft costs nothing and catches mistakes before components are reserved.
What happens when I add a new option?
Add it to your product options app, then add a row for each new value in the MESA Data rules table. Any value without a rule fails validation and is tagged for review, so a new option can't quietly ship with a missing component.
Do I need Odoo Enterprise?
MESA's Odoo connector works with every Odoo edition, including Standard Online. You do need the Manufacturing app installed in your Odoo database for the BoM and manufacturing order models to exist.
