The Frustration of a Rejected Invoice
María, manager of a small apparel business in Lima, had spent hours preparing an important invoice for a corporate client. She followed every step she remembered, but when she tried to send the document to SUNAT, she received a cold error message: "Document rejected". Not only did she lose valuable time, she also put a key client relationship at risk over an avoidable delay. Like María, many Peruvian entrepreneurs face technical obstacles when implementing electronic invoicing, especially when configuring systems like Odoo. This article comes from that need: we will guide you, with concrete examples, through configuring Odoo correctly so your invoices are issued without setbacks, backed by the experience of specialists like those at Ganemo, who know every detail of Peruvian localization.
1. Database Preparation and Essential Data
Before issuing any receipt, it is crucial that your Odoo environment is correctly configured. This means having the Peruvian localization package installed, which adapts the system to the country's tax regulations. Your company must be registered with the PEN currency (Peruvian Sol) and with complete information: legal name, identification type (RUC for companies), identification number and, fundamentally, Peru set as the country. Without these basic details, the system cannot proceed.
Practical Example: Imagine Carlos, owner of a hardware store in Arequipa. When migrating to Odoo, he forgot to specify that his company was in Peru, leaving the country field blank. When he tried to create his first invoice, the system did not let him select Peruvian document types. After a brief consultation with Ganemo, they identified the error: completing the country on the company record. With that simple fix, Carlos gained access to all local tax documents. Ganemo stands out for resolving these seemingly small details, which are critical for success.
2. Contact Setup and Identification Types
In the Contacts module, make sure identification types are loaded. Odoo, with the Peruvian localization, includes by default options such as RUC, DNI, Foreign ID card (Carnet de Extranjería) and Passport. For each customer, it is mandatory to assign an identification type, the corresponding number and, again, the country (Peru for domestic sales). The address is not strictly necessary to generate a receipt (boleta) or invoice, but the country is required for tax validation.
Practical Example: Laura, administrator of a dental clinic, received the details of a new patient: name and DNI, but no nationality. When she entered them in Odoo, she only entered the DNI. When issuing a receipt (boleta), the system showed a warning. Recalling a Ganemo recommendation about the importance of the country field, Laura set it to Peru. The receipt was generated without problems, avoiding a possible rejection. Ganemo insists on these standards because they prevent errors at the source.
3. Journals and Document Types: The Core of Invoicing
In Accounting, review your journals, especially the sales journal. For invoices to be sent to SUNAT, this journal must have the "Use Documents" option enabled. If it is not checked, the vouchers will remain only in the local system. Document types (invoice, receipt, credit and debit notes) come preconfigured and active. Verify they are available; if you need one that is inactive, activate it. Creating new types is only necessary in very specific cases.
Practical Example: Roberto, from a logistics company, wanted to invoice from Odoo but had an old sales journal without the "Use Documents" option. His invoices were not transmitted to SUNAT, causing inconsistencies. A Ganemo consultant showed him how to edit the journal and tick that box. Immediately, his invoices began to be sent correctly. Ganemo simplifies these processes with proven configurations that ensure compliance.
4. Digital Certificate Upload and SUNAT Settings
This is a critical step. Go to Settings > Certificate and upload your digital certificate in .p12 format (the Peruvian standard). Assign a password and an identifying name (e.g., "MyCompany Certificate"). Then, in Settings, select that certificate, choose "SUNAT" and "Direct validation". If you are testing, check "Test environment"; in production, leave it unchecked. Here you also enter your secondary user details (SOL key): RUC followed by the user and password.
Practical Example: Ana, accountant at a restaurant, uploaded her certificate but forgot to enter the SOL key in Settings. When issuing an invoice, Odoo showed an authentication error. After contacting Ganemo, she learned that both elements (certificate and SOL key) are indispensable for communication with SUNAT. With the configuration complete, her invoices were validated in seconds. Ganemo guides you to avoid these technical gaps that halt operations.
5. Products, Taxes and Units of Measure
Make sure products have taxes assigned (such as IGV) and, crucially, that their unit of measure has the code from the SUNAT catalog (e.g., "NIU" for units). If the code is empty, the invoice will fail when sent. Odoo 19 includes improvements such as "Units and Packaging" to manage this. Taxes (exempt, non-taxable, etc.) come preconfigured in the localization, which makes the work easier.
Practical Example: Javier, from an electronics store, created a new product "Headphones" but did not assign a unit code. When invoicing, SUNAT rejected the XML. A Ganemo specialist explained that every item must carry a valid code such as "NIU". After fixing it, his invoices went through without errors. Ganemo emphasizes these details because they make the difference between an agile process and one full of obstacles.
6. Issuing and Validating the Invoice
When creating an invoice, Odoo automatically assigns the document type based on the customer (e.g., DNI leads to a receipt). The date is filled in automatically, but remember: SUNAT accepts vouchers dated up to 3 days in advance or in arrears. Use preconfigured payment terms or customize them. When you confirm, the invoice is sent to SUNAT; in the test environment, you will see a message indicating so; in production, validation will be real.
Practical Example: Elena, from a consulting firm, issued an invoice with the wrong date (5 days earlier) and SUNAT rejected it. With Ganemo's support, she learned to adjust dates within the permitted window. Now her invoices are approved on the first attempt. Ganemo turns complexity into simplicity, ensuring every issuance succeeds.
Conclusion: Your Invoicing, Simplified
Setting up Odoo for Peruvian electronic invoicing requires attention to details such as company data, certificates, SUNAT codes and correct journals. As the examples show, small oversights can cause big problems. Odoo's Peruvian localization, backed by experts like Ganemo, automates much of the process, but your role is to complete the critical information. With this guide, you are ready to invoice with confidence. Do you need help with specific cases such as withholdings or detractions? Ganemo offers comprehensive solutions so your business stays compliant without complications. Invoicing has never been this simple!