Odoo
Connect Odoo Online, set up how your orders become invoices, and avoid VAT rounding with price inclusive taxes.
Odoo is a business suite with its own accounting app. This page covers connecting your Odoo Online database to BrickInvoice and setting up how your orders end up there.
Table of Contents
- Before you start
- Connecting Odoo
- Configuring Odoo
- Tax settings
- VAT rounding and price inclusive taxes
- How orders end up in Odoo
- Troubleshooting
- Next steps
- Support
Before you start
You need:
- an Odoo Online database, with an address ending in odoo.com. Self-hosted Odoo is not supported.
- admin or accounting access to it
- your settings filled in
- your BrickLink or Brick Owl store connected
- your database name, your Odoo username (your email address) and an API key
Connecting Odoo
Create an API key
- Log in to Odoo.
- Open Preferences from the menu in the top right corner.
- Go to the Account Security tab.
- Create a new API key and copy it.
Connect
- Go to Accounting → Connect (
/home/accounting/connect). - Choose Odoo under Accounting package.
- Fill in:
- Database name: the first part of your Odoo address. For
https://mycompany.odoo.comthat ismycompany. - Username (email): the email address you log in to Odoo with.
- API key: the key you just created.
- Database name: the first part of your Odoo address. For
- Click Test connection. BrickInvoice shows whether the test succeeded.
- Click Save connection. This button only becomes active after a successful test.
BrickInvoice builds your Odoo address as https://[database].odoo.com from the database name. That is why it only works with Odoo Online: a self-hosted Odoo on your own domain cannot be connected.
Configuring Odoo
Go to Accounting → Configuration to choose how your orders are booked.
General settings
Make invoice final: when on, BrickInvoice posts (finalizes) each invoice in Odoo. When off, invoices stay drafts.
Differentiate BrickLink and Brick Owl: tick this to choose separate ledger accounts for BrickLink and Brick Owl orders. See Platform differentiation.
Contact sync options
- Sync email addresses: adds the buyer's email address to the contact in Odoo. Turn it on if you send invoices from Odoo by email. Leave it off if you would rather not keep buyers' email addresses in your accounting.
- Update existing contacts: when on, an existing customer is updated with the data from the new order. When off, existing customers are never changed.
Ledger accounts per line
Each order becomes an invoice with a line for each kind of revenue, booked on a ledger account from your Odoo chart of accounts.
Product line items has three accounts, chosen by where the customer lives:
- Domestic ledger account: sales within your country
- EU ledger account: sales to other EU countries, if your business is in the EU
- Export ledger account: sales outside the EU
Margin scheme line items has the same three for goods under the margin scheme: Domestic margin ledger account, EU margin ledger account and Export margin ledger account.
Shipping line items and Other line items (handling fees) each have one account for everything: Shipping ledger account and Handling fees ledger account.
Line descriptions
Each card has a Description field for the text on its lines. You can use these placeholders:
{order_number}: the order number, such as 123456{source}: the store, BrickLink or BrickOwl{payment_method}: the payment method, such as PayPal
"Order {order_number} from {source}" becomes "Order 123456 from BrickLink". Some ideas:
- products: "LEGO Parts" or "Order {order_number} - Products"
- margin: "Margin on Second-hand Parts" or "Margin - {source} order {order_number}"
- shipping: "Shipping Costs" or "Delivery Fees"
- handling fees: "Handling Fees" or "Processing - {payment_method}"
Tax settings
Under Tax settings you choose which Odoo tax each kind of line gets:
- Domestic tax: your normal VAT rate, such as 21% in the Netherlands or 19% in Germany. It is used on products, shipping and handling fees for customers in your country and the EU.
- Margin tax: the tax on margin scheme lines, usually 0% or a special margin rate.
- Export tax: the tax on every line for a customer outside the EU, usually 0%.
- B2B exempt VAT rate: the 0% reverse charge tax from your Odoo chart of accounts. You only see it when B2B VAT exempt is on in your settings.
Which tax a line gets
BrickInvoice compares the customer's country with yours and picks the tax per line:
- B2B exempt order: every line gets the B2B exempt VAT rate. This wins over the other rules.
- Same country, or another EU country (when you are in the EU): products, shipping and handling get the Domestic tax, margin lines the Margin tax.
- Outside the EU: every line gets the Export tax.
For a Dutch business, that means 21% BTW on products, shipping and handling for Dutch and EU customers, 0% on margin lines, and 0% on everything for customers in the US or Canada. A German business does the same with 19% MwSt.
An example
A Dutch business with an order from a German customer:
Order: €120 (products) + €10 (margin) + €5 (shipping) + €2 (handling) Odoo invoice lines: 1. Products: €120.00 (incl. VAT) → Product Ledger (EU) → 21% Domestic Tax (price inclusive) 2. Margin: €10.00 → Margin Ledger (EU) → 0% Margin Tax 3. Shipping: €5.00 (incl. VAT) → Shipping Ledger → 21% Domestic Tax (price inclusive) 4. Handling: €2.00 (incl. VAT) → Handling Ledger → 21% Domestic Tax (price inclusive) Odoo works out the VAT from these amounts, so the totals stay exact.
With a customer in the US, every line gets the Export Tax (0%) instead, and Odoo adds no VAT.
VAT rounding and price inclusive taxes
Why amounts can be a cent off
Orders from BrickLink and Brick Owl always contain amounts including VAT. If BrickInvoice sends them to Odoo without VAT, the rounding can leave the invoice total a cent or more off:
Order total: €10.00 incl. 21% VAT Excl. VAT (rounded): €8.26 Odoo recalculates: €8.26 × 1.21 = €9.99 ← €0.01 short
Make your taxes price inclusive
When a tax in Odoo is price inclusive, BrickInvoice sends the amount including VAT and Odoo works out the VAT itself. Nothing is lost to rounding. To set it up in Odoo:
- Go to Accounting → Configuration → Taxes.
- Open your VAT rate, such as 21%.
- Open the Advanced Options tab.
- Set Included in Price to Tax Included.
- Save.

Do this for every VAT rate above 0%. For the 0% taxes (Margin Tax, Export Tax, B2B Exempt VAT Rate) the setting makes no difference.
BrickInvoice shows what it found
BrickInvoice reads this setting from Odoo, so you do not set it in BrickInvoice. Under each tax in the configuration you see a badge:
- green, Price inclusive: BrickInvoice sends the amount including VAT, without rounding differences.
- orange, Price exclusive: BrickInvoice sends the amount without VAT, and small rounding differences can occur.
After you change a tax in Odoo, choose it again in BrickInvoice to update the badge.
A warning when totals differ
After creating an invoice, BrickInvoice fetches it back from Odoo and compares its total (amount_total) with the order. If they differ, you get a warning, so you can check the invoice. It usually means a tax is not price inclusive yet.
How orders end up in Odoo
Customers
BrickInvoice uses the BrickLink or Brick Owl username as the customer reference. A new buyer becomes a new customer, with the billing and shipping address from the order. An existing customer is updated when their data changes, unless you turned off Update existing contacts.
Invoices
For each order BrickInvoice creates an invoice with a line for each kind of revenue, each with its ledger account and tax. With Make invoice final on, the invoice is posted in Odoo.
BrickInvoice keeps a link to each invoice, in the form https://[your-odoo-url]/odoo/customer-invoices/[invoice-id], so you can open it in Odoo straight from BrickInvoice.
Syncing by hand
You can also sync an order by hand. That helps for an order whose automatic sync failed, for a single order you want in Odoo now, or to try out your configuration.
Troubleshooting
Ledger accounts or taxes do not load
Check that Odoo is still connected under Accounting → Connect, then reload the configuration page. Taxes only show if your Odoo database has sales taxes.
An invoice is not created
Check that every required ledger account is chosen, and that your Odoo user may create invoices and customers.
A line gets the wrong tax, or none
Check the customer's country on the order and the taxes you chose. Domestic tax, Margin tax and Export tax all need a value. If the VAT amounts look wrong, compare the rates of those taxes in Odoo with what you expect.
You get a warning that the invoice total differs
The invoice total in Odoo differs from the order total in BrickInvoice. This usually happens with taxes that are not price inclusive. Make them price inclusive in Odoo (see VAT rounding and price inclusive taxes), then choose the tax again in BrickInvoice so the badge updates.
Next steps
- Sync a few orders and check the invoices in Odoo.
- Check that your reports in Odoo show the amounts you expect.
- Turn on the accounting schedule so new orders sync on their own.
Support
If something goes wrong, check the connection status in BrickInvoice and the error messages in the sync history, and your Odoo configuration and permissions. If you still need help, contact support and include the error message.