Xero Import

Import a Xero organisation into Odoo Accounting: chart of accounts, taxes, customers, vendors, products, open invoices and bills with their payments, and opening balances checked against the Xero trial balance.

Buy on the Odoo App StoreThe catalogue

What it does

Moves your books from Xero to Odoo. The chart of accounts lands in an editable Account Map, tax rates are linked to the Odoo tax with the same rate (or created, and listed, when you allow it), contacts arrive as customers and vendors (one partner when a contact is both), and invoices, credit notes and bills are posted only when their totals equal Xero to the cent, tax-exclusive or tax-inclusive.

Pick a cut-over date: older documents come in only while they are open, with the payments and credit notes applied to them, and one opening entry brings every account to the Xero trial balance of that day. The import then checks each account and lists any difference.

Re-runs read only what changed, within Xero's API limits, so you can keep both systems in step until you switch. Each step writes a row in the Import History with what was created, updated, left out and skipped.

Demo video

The video loads from YouTube (privacy-enhanced mode) when you press play. Watch on YouTube

Features

FeatureWhat it does
Chart of accountsEvery account mapped to an Odoo account type; receivable, payable, GST, bank and retained earnings go to the company's own accounts.
Tax ratesEach Xero tax rate per use (sales, purchases), multi-component rates as group taxes; nothing created without being listed.
Contacts and itemsNames, e-mail, phone, website, tax number, postal and street addresses, contact persons, payment terms; items with prices, accounts and default taxes.
Invoices, credit notes and billsLines, discounts, tax-exclusive and tax-inclusive amounts; totals checked to the cent before posting; credit note allocations applied.
PaymentsInvoice and bill payments (batch payments included) on the mapped journal, applied exactly.
Opening balancesOne opening entry on the cut-over date from the Xero trial balance, minus what Odoo already holds; every account then checked.
Safe re-runsRecords matched by their Xero id first; voided and deleted documents and payments cancelled in Odoo, never deleted.
Security and limitsRead-only scopes; secret and tokens visible to administrators only and never logged; one Xero organisation per Odoo company; 60 calls a minute respected, long imports continue in the background.

Setup

  1. In the Xero developer portal (My Apps), create a Web app and register the Redirect URI shown in Odoo (Odoo must be reachable over https).
  2. Odoo: Settings > Xero Import. Paste the Client ID and Client Secret, click Connect to Xero and pick the organisation (try the Demo Company first).
  3. Click Bank Accounts and choose the Odoo journal for each Xero bank account; set the journals and the cut-over date.
  4. Turn on the steps and click Start Import (or Run in Background). Review the Account Map and Tax Map, then run Opening Balances and read the trial balance check in the Import History.

Requirements

  • Odoo 17, 18, 19 or 20, Community edition
  • Odoo apps: Invoicing, Contacts, Products, Discuss
  • Python requests on the Odoo server

What it does not do

  • Export from Odoo to Xero.
  • Overpayments, prepayments and refunds, bank transactions, manual journals, tracking categories, attachments, quotes and purchase orders, inventory quantities.
  • Foreign-currency documents keep Xero's amounts but are booked at the Odoo rate of their date.
  • Month-based payment terms (due dates come from each document).

Tests

Automated tests, last run
OdooTests passedLast run
17111
18111
19111
20111

The tests ship with the module source, so you can run them on your own server.

Questions

Which Xero app do I need?

A free Web app from the Xero developer portal; Odoo asks for read-only scopes only.

What does the cut-over date do?

Documents dated on or before it come in only while they are still open; the opening entry carries everything else, so Odoo matches the Xero trial balance on that day.

A contact is both customer and supplier in Xero. What do I get?

One Odoo partner with both roles.

Does a second import create duplicates?

No. Every record is matched by its Xero id, and unchanged records are not written again.

What about the Xero API limits?

The import stays under 60 calls a minute; a large first import saves as it goes and continues in the background.

Moving your accounting to Odoo?

We run Odoo implementations: scope, configuration, data migration and training, with a fixed price agreed before work starts.

Odoo implementation [email protected]