Picture a distributor in Peru that has outgrown its spreadsheets. Sales are entered in Odoo, but the facturas and boletas still come out of a separate billing portal. Somebody retypes the customer's RUC, the totals, the IGV. At month end the accountant exports everything to Excel and rebuilds the sales and purchase registers by hand before uploading them to SUNAT. When a nota de crédito is issued in the portal, nobody remembers to reflect it in Odoo until the numbers stop matching.
We see this setup a lot. It works until volume grows, and then it starts eating two or three days of someone's month.
The fix is not complicated in principle: make Odoo the place where the comprobante is created, signed, sent and recorded, and let the books come from the same data. In practice there are three pieces to get right, and they depend on each other more than people expect.
The three pieces: CPE, books and master data
When someone searches for "Odoo SUNAT facturación electrónica" they usually mean invoicing. But invoicing is only the first piece. What we tell clients is to think about it as a chain:
- Master data. The customer's RUC or DNI, legal name and fiscal address have to be correct before you issue anything. A wrong RUC on a factura means a rejection or a nota de crédito later.
- The comprobante de pago electrónico (CPE). Factura, boleta, nota de crédito, nota de débito, and for goods that move, the guía de remisión electrónica (GRE).
- The electronic books. PLE and SIRE registers that SUNAT expects, built from the accounting entries those comprobantes created.
If piece one is sloppy, pieces two and three inherit the mess. So we start there.
Getting RUC and DNI right in the contact form
Most rejected invoices we look at trace back to the contact record, not the invoice. Someone typed the RUC with a missing digit, or the razón social is the trade name instead of the legal name, or the address is from three moves ago.
Our Peru RUC and DNI lookup module handles consulta RUC and consulta DNI directly inside the Odoo contact form. You enter the number and the contact's data is filled from the lookup instead of being typed by a salesperson in a hurry.
A few habits we recommend alongside it:
- Set the identification type on the contact (RUC for companies, DNI for individuals) before you save. It drives whether a sale becomes a factura or a boleta.
- Restrict who can edit the tax ID on existing contacts. In Odoo that's a matter of access rights on the Contacts app, and it saves a lot of grief.
- Clean up duplicates before go-live. Two contacts with the same RUC will split your sales register in confusing ways.
It sounds boring. It is boring. It's also where we'd spend the first afternoon of any project.
Issuing CPE from Odoo
With the contacts in order, the SUNAT electronic invoicing module lets you issue factura, boleta, nota de crédito and nota de débito from Odoo 19 in UBL 2.1, signed with your digital certificate and sent to SUNAT or to your OSE. It also covers the GRE guía de remisión, which matters if you dispatch goods from a warehouse.
The day-to-day flow stays inside Odoo's normal screens. You confirm an invoice under Accounting > Customers > Invoices the same way you always did, and the electronic document goes out from there instead of from a separate portal. Credit notes are created from the original invoice, so the reference to the document being corrected is kept, which is exactly what SUNAT wants to see.
What usually goes wrong at this stage:
- The certificate. People wait until the week before go-live to buy or renew it, then discover it's expiring or was issued to the wrong representative. Sort it out early and note the expiry date somewhere visible.
- Document series. Facturas, boletas and notes each need their own series, and they have to match what you've declared. We set these up as separate journals or sequences in Odoo and test each one before going live.
- SUNAT direct vs OSE. Both are valid routes. Some companies already have an OSE contract and want to keep it; others prefer sending directly. Decide this before configuration, not during.
- Testing. Use the test environment, send real-looking documents (with discounts, exonerated lines, multiple taxes) and read the responses. A factura with one line and one tax proves very little.
Our opinion: don't go live on the first day of a month-end close. Pick a quiet week, run both systems in parallel for a few days if you can, and only then switch the old portal off.
PLE and SIRE: let the books come from the ledger
This is where the time savings really show up. Once every comprobante is an accounting entry in Odoo, the registers don't need to be rebuilt in Excel.
The PLE and SIRE electronic books module produces Peru's PLE and SIRE libros electrónicos from your Odoo accounting, including the SIRE sales and purchase registers (RVIE and RCE).
SIRE changed how a lot of companies work with purchases in particular. SUNAT proposes a register and the taxpayer reviews and adjusts it, so your purchase data in Odoo has to be clean enough to compare against. A few practical points from what we usually see:
- Vendor bills need the supplier's document type and number filled in properly. If your team enters vendor bills with a reference like "invoice from March", the register can't match it to anything.
- Reconcile before you generate. Run your usual checks (the tax report, the aged payables, a quick look at bills in draft) before you build the register. Garbage in the ledger shows up as garbage in the file.
- Watch documents dated in one period and posted in another. This is the most common source of differences between the books and what SUNAT has on file.
- Keep the accountant in the loop. The module builds the files from the data. Your accountant still decides how specific cases are treated.
The rules around which books apply to your company, and when SIRE became mandatory for your type of taxpayer, have changed several times over the last few years and may change again. We won't quote obligations or dates here. Confirm what applies to you with your contador or directly with SUNAT before you plan the rollout.
Don't forget payroll
It's not part of invoicing, but in most Peruvian implementations the payroll question comes up in the same meeting. If you're moving accounting into Odoo, it's worth asking whether planilla should follow. Our Peru payroll module covers PLAME, EsSalud, ONP, AFP, Renta de Quinta, gratificación and CTS for Odoo 19. Whether you do it in phase one or later depends on how tangled your current payroll process is. Usually we'd stabilise invoicing and books first.
How we'd plan the rollout
If you asked us for a plan over coffee, it would look roughly like this:
- Clean contacts and turn on RUC/DNI lookup.
- Configure journals, series and the certificate. Decide SUNAT or OSE.
- Test every document type, including notes and the GRE if you ship goods.
- Go live on invoicing in a quiet week.
- Run one full month, then generate PLE/SIRE and compare with what your accountant produced the old way.
- Fix the differences, then retire the spreadsheet.
Step five is the one people want to skip. Don't. One month of side-by-side comparison will catch the edge cases that a test environment never shows.
If your setup has custom flows (consignment, exports, several warehouses issuing guías), that's where our development services come in, adapting the standard modules to how you actually operate.
Questions we get asked
Do we have to stop using our OSE?
No. The CPE module can send to SUNAT or to your OSE. If you're happy with your current OSE contract, you can keep it.
Can we keep issuing some documents from the old system during the switch?
You can, for a short time, but be careful with series numbering. Two systems issuing from the same series will collide. Give each system its own series during the overlap and close the old one cleanly.
Will this work on Odoo Community?
The modules listed here are built for Odoo 19. If you're on an older version or unsure which edition you have, tell us what you run and we'll say plainly whether it fits or whether you'd need a migration first.
Talk to us
If you want SUNAT invoicing, PLE/SIRE books and RUC/DNI lookup working together in your Odoo, request a quote or contact us with a short description of your setup. We work remotely with teams in Peru, and we're happy to look at your current process before suggesting anything.
