Picture a distributor in Colombia that moved to Odoo last year. Sales orders, stock and purchasing work fine. But every invoice still gets typed a second time into the DIAN free invoicing portal or a provider's web screen. Every February someone in finance spends two weeks exporting spreadsheets to build the exógena files. And payroll lives in a separate program that nobody wants to touch because the PILA file finally comes out right.
That company has three systems doing one job. We see this setup a lot, and it's usually the reason people end up searching for "Odoo DIAN factura electrónica".
The good news is that all three pieces can live inside Odoo. The less good news is that each one has its own traps, and most of them have nothing to do with code. They come from master data.
How DIAN e-invoicing fits into Odoo
In Colombia an electronic invoice isn't a PDF you email. It's a structured XML document in the UBL format that DIAN validates. Each invoice carries a unique code (the CUFE), a QR code, and has to match an authorised numbering range. Credit notes and debit notes follow the same logic. DIAN publishes the technical annex, and it gets updated, so whatever you run has to keep up with the current version.
In Odoo the flow should feel ordinary to your team. Someone confirms an invoice under Accounting > Customers > Invoices, Odoo builds the XML, signs it, sends it, and stores DIAN's response on the invoice. If DIAN rejects it, the user sees the reason on the record, fixes the data and sends again. Nobody opens a second portal.
Our Colombia DIAN Electronic Invoicing module for Odoo 19 is built for exactly that flow. But before anyone installs anything, we'd ask you to check a few things.
The setup steps people skip
- The numbering resolution. Your resolución de facturación from DIAN has a prefix, a range and a validity period. These go on the sales journal under Accounting > Configuration > Journals. If the journal's sequence doesn't match the resolution exactly, every invoice will bounce. We've lost count of how often the prefix has a stray space or the range starts at 1 when DIAN authorised it from 1001.
- The habilitación test set. DIAN requires you to pass a test set before production. Plan a few days for this. It's usually where the data problems show up first, which is a good thing.
- The digital certificate. You need a valid signing certificate, and it expires. Put the expiry date in someone's calendar. An expired certificate on a Monday morning means no invoices go out.
- Separate journals for separate resolutions. If you invoice from more than one point of sale or with different prefixes, give each one its own journal. Mixing them is a reliable way to break the sequence.
Where it really goes wrong: contacts and taxes
The XML pulls a lot from the customer record. In Contacts, every Colombian customer needs the right identification type (NIT, cédula, foreign ID), the number, and for NIT the verification digit. They also need a correct city and department, the fiscal responsibilities, and the tax regime. If the DV is wrong, DIAN rejects the invoice. If the city is free text instead of a proper code, DIAN rejects the invoice.
Our advice: clean the contact list before go live, not after. Export your active customers, fix them in a spreadsheet with your accountant, import them back. It's dull work, and it saves weeks of rejected documents.
Taxes are the second source of trouble. IVA, the withholdings (retención en la fuente, ReteIVA, ReteICA) and the impoconsumo each need to map to the codes DIAN expects. In Odoo that means the tax records under Accounting > Configuration > Taxes and the fiscal positions that apply them. Rates and rules for withholdings change, and ReteICA varies by municipality, so confirm the current values with your accountant or with DIAN rather than copying an old configuration.
Exógena: stop building it in spreadsheets
Información exógena, the medios magnéticos, is the annual report where you tell DIAN about payments, withholdings, income, balances with third parties and more. It's split into formatos: 1001 for payments and withholdings, 1003 for withholdings that were practised on you, 1005 and 1006 for IVA, 1007 for income, 1008 and 1009 for receivables and payables, and others depending on the company. Which ones you must file, and the thresholds, depend on DIAN's resolution for that year, so check it every year.
What we usually see is a finance team exporting the general ledger, pivoting it in Excel and trying to group every amount by third party and by concept. It works until someone posts an entry without a partner, or uses the wrong account, and then the totals don't reconcile with the trial balance.
If your accounting is already in Odoo, the data is there. Every journal item has an account and, ideally, a partner. The Colombia Exógena module builds the formatos from your Odoo accounting, so the report comes from the same entries as your balance sheet.
Two things make or break this:
- Partners on every journal item that needs one. Payables, receivables, withholdings, bank fees paid to a third party. If the line has no partner, it can't go to a third party in the report. Run a filter in Accounting > Journal Items for lines with no partner on the relevant accounts, and fix them monthly, not in January.
- A clear mapping from accounts to concepts. Each formato uses concept codes. Your chart of accounts has to map to them. Do this once with your accountant, document it, and only change it on purpose.
Get those right and exógena becomes a review task instead of a two week project.
Payroll: the part people are most nervous about
Payroll is where companies are most reluctant to move, and we understand why. A mistake affects people's salaries and their social security, not just a tax report.
Colombian payroll in Odoo has to cover several pieces: the payroll itself (nómina), the PILA file for social security and parafiscales, withholding on salaries (retención en la fuente), and the prestaciones sociales such as cesantías, interest on cesantías, prima and vacations. On top of that there is nómina electrónica, the electronic payroll support document that also goes to DIAN.
Our Colombia Payroll module covers PILA, nómina, retención en la fuente and prestaciones for Odoo 19 Community. That last point matters for some companies: you don't need an Enterprise subscription just to run Colombian payroll.
How we'd approach the switch:
- Run in parallel for at least two pay periods. Keep the old system running and compare every employee's net pay, PILA contributions and withholding line by line. Differences of a few pesos usually point to rounding rules. Bigger differences usually point to a contract set up wrong.
- Get contracts right in Odoo. Salary type, start date, the risk class for ARL, the EPS and pension fund, and whether the employee has integral salary. Most payroll errors we see trace back to one wrong field on the contract.
- Plan the cut over date. Switching in the middle of a year means you need opening balances for accumulated prestaciones and for withholding. Switching at the start of a year is cleaner, if you can wait.
Legal minimums, contribution percentages and withholding tables change, sometimes every year. Have your accountant or payroll advisor review the configuration before each new year.
Questions we get asked
Do we still need a technology provider?
DIAN allows companies to send documents directly or through an authorised provider, and the options and conditions can change. Many companies keep a provider for the transmission and use Odoo to build and manage the documents. Talk to your accountant about which route fits your volume, and we'll set Odoo up for that route.
Can we start with invoicing and add payroll later?
Yes, and that's often what we recommend. Invoicing touches every sale, so get it stable first. Exógena can follow once you've had a few months of clean partner data. Payroll is a separate project with its own parallel run.
We're on an older Odoo version. Is that a problem?
These modules are built for Odoo 19. If you're on an older version, the honest answer is that you'll probably want to plan a migration first, rather than patching a localization onto an old database. We can look at your setup through our services and tell you what that involves.
Talk to us
If you want DIAN invoicing, exógena and payroll running in Odoo without three separate systems, request a quote or contact us. We work remotely with teams in Colombia, and we're happy to look at your current setup before you commit to anything.
