Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Property Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
      • Get a Tailored Demo
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +32 2 290 34 90
    • Get a Tailored Demo
  • Pricing
  • Help
  1. APPS
  2. Accounting
  3. DUA in Invoice v 19.0
  4. Sales Conditions FAQ

DUA in Invoice

by Ganemo https://www.ganemo.co
Odoo

$ 30.00

v 19.0 Third Party
Apps purchases are linked to your Odoo account, please sign in or sign up first.
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies • Invoicing (account)
• Discuss (mail)
Community Apps Dependencies Show
Peruvian Localization Menu
Lines of code 376
Technical Name dua_in_invoice
LicenseOPL-1
Websitehttps://www.ganemo.co
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies • Invoicing (account)
• Discuss (mail)
Community Apps Dependencies Show
Peruvian Localization Menu
Lines of code 376
Technical Name dua_in_invoice
LicenseOPL-1
Websitehttps://www.ganemo.co
  • Description
  • License

Technical Specification for AI & LLM

This Odoo module 'dua_in_invoice' adds specific fields to the Vendor Bill to support Peruvian customs requirements. It introduces 'Year of Emission' and 'Customs Dependency' (code_aduana) fields on account.move. These fields are technically required for the Peruvian Electronic Purchase Record (PLE). The fields are conditionally visible only when the L10N LATAM Document Type is set to '50' (DUA), '52', or '53'. Compatible with Odoo 19 (Enterprise, Odoo.SH, Ganemo Online). Multi-language support for English and Spanish included.

Enterprise (Odoo.SH, Ganemo Online or Ganemo.SH)
English & Spanish Included

DUA in Invoice

PLE Compliance for Imports

Complete your Purchase Electronic Record (PLE) in Peru by correctly registering Customs Declarations (DUA/DSI).

What We're Solving

----------------

Missing Legal Fields

Odoo's standard localization often misses the specific fields required for Doc Type 50 (DUA). This module adds "Year of Emission" and "Customs Dependency" to ensure valid tax reporting.

Smart Visibility

The fields only appear when you select Import Document Types (50, 52, 53). For regular local invoices, these fields utilize auto-hide to keep your interface clean.

Setup & User Manual

Step-by-Step implementation

1. Configuration Guide

System readiness in seconds.

System Dependencies
  • This module relies on l10n_pe_localization_menu.
  • Zero Manual Config: All Customs Codes (Dependencies) are pre-loaded automatically.
Verification
  • Go to Accounting / Accounting / Localization / Customs Codes.
  • Verify that the list is populated (e.g., 118, 235).
  • If empty, upgrade the `l10n_pe_localization_menu` module.

2. Operating Manual (Workflow)

Correctly registering an Import (DUA/DSI) for PLE:

1. Create the Vendor Bill

Navigate to Accounting / Vendors / Bills and click New. Select your international vendor.

2. Select Document Type

In the "Document Type" field, select 50 - Declaracion Aduanera de Mercancias - Importacion Definitiva (or 52/53). This action triggers the fields to appear.

3. Set Emission Year

Locate the new Year of Emission field (usually below the Date). Select the year corresponding to the DUA issuance (e.g., 2024).

4. Set Customs Dependency

In the Customs Dependency field, search for the Customs Office code/name (e.g., "118 - MARITIMA DEL CALLAO").

Result: PLE Compliance

When you generate the PLE 8.1 (Purchase Register), the system will concatenate these fields into the Series/Number formats required by SUNAT (e.g., `118-2024-001234`).

Global Ready | Multi-Language Support

This module is fully translated into English and Spanish (en_US, es_ES, es_PE, es_MX), ensuring a professional experience for international organizations.

English Spanish

Why Choose Ganemo?

----------------

Ganemo is the world's leading Odoo App developer and a multi-award-winning Gold Partner. For over 5 years, we have been recognized as the #1 seller of high-quality apps on the Odoo App Store. Trusted as the "Best Partner" in USA, Mexico, Chile, Spain, Colombia, Ecuador, and Peru, we deliver robust, secure, and localization-compliant solutions for global businesses.

Get a Quote & Resolve Commercial Doubts

Join thousands of satisfied clients on Odoo. Contact our sales team directly.

QR WhatsApp

Official WhatsApp

Fastest response time.

COPY
LINK
https://wa.me/18286726150

+1 (828) 672-6150

QR Sales Email

Sales Email

For commercial inquiries.

COPY
ADDR
leads@ganemo.com

leads@ganemo.com

QR Book Demo

Book a Demo

Let's explore your needs.

COPY
LINK
ganemo.co/appointment/5

Schedule Meeting

Need More? We Do It All

Professional Odoo Services

ERP Implementation

Transform your business with a full Odoo implementation. We analyze, configure, and train your team to maximize productivity. From Accounting to Inventory, we handle the complexity so you can focus on growth.

Module Dev & Migration

Need a custom feature? Or stuck on an older version? We develop high-performance custom modules and migrate your existing code to Odoo 19 with zero data loss. Expert developers at your service.

QA / User Testing Scenarios

Enterprise Validation Plan

Scenario 1: Field Visibility & Logic

  1. Create a Vendor Bill.
  2. Select Doc Type 50 (Declaracion Aduanera).
  3. Check: "Year of Emission" and "Customs Dependency" fields MUST appear.
  4. Change Doc Type to 01 (Factura).
  5. Check: The fields MUST disappear instantly.
  6. Change Doc Type back to 52 (Simplificada).
  7. Check: The fields MUST reappear.

Scenario 2: Validation Enforced

  1. Set Doc Type to 50.
  2. Fill in the Invoice Number and Date.
  3. Leave "Year of Emission" empty.
  4. Click Save.
  5. Result: Odoo MUST block the save and show a validation error for the missing required field.

Scenario 3: Data Persistence

  1. Create and Save a DUA (Doc 50) with Year "2024" and Code "118".
  2. Navigate back to the Tree View (List).
  3. Re-open the record.
  4. Result: The fields must retain the values "2024" and "118". They should not be lost.

Scenario 4: Credit Note Warning

Goal: Ensure logic holds for Refunds.

  1. Create a Credit Note (Refund).
  2. Select Doc Type 50 (Unlikely, but testing edge case) or related correction type.
  3. Result: If the Doc Type involves Customs, the fields should behave identically to the Invoice.

FAQ & Troubleshooting

Common Resolutions

Where do I find the Customs Code?

Answer: The codes (e.g., 118, 235) are pre-loaded based on the official SUNAT catalog via the dependency module.

Tip: If the list is empty, ensure l10n_pe_localization_menu is installed and updated.

Why can't I see the fields?

Answer: The fields are dynamically hidden. They only activate for Import Document Types.

Fix: Ensure the L10N LATAM Document Type is set to 50, 52, or 53.

Does this affect PLE Reports?

Answer: Yes. The data entered here is what fuels columns 11, 12, and 13 of the PLE 8.1 Register.

Note: Without these fields, your PLE 8.1 will likely be rejected by SUNAT for imports.

I made a mistake in the Year, can I fix it?

Answer: Yes, as long as the invoice is in Draft state.

Fix: Reset to Draft, correct the Year/Code, and Post again.

Commercial & Sales

For inquiries about licenses, demos, or partnerships.

QR WhatsApp
Official WhatsApp

Fastest response time.

COPY
LINK
https://wa.me/18286726150

+1 (828) 672-6150

QR Sales Email
Sales Email

For commercial inquiries.

COPY
ADDR
leads@ganemo.com
QR Book Demo
Book a Demo

Let's explore your needs.

COPY
LINK
ganemo.co/appointment/5

Technical Support

Existing customers regarding module functionality.

QR Technical Support
Help Desk

Exclusive channel for technical assistance and bug reports.

COPY
ADDR
ayuda@ganemo.com
Odoo Proprietary License v1.0

This software and associated files (the "Software") may only be used (executed,
modified, executed after modifications) if you have purchased a valid license
from the authors, typically via Odoo Apps, or if you have received a written
agreement from the authors of the Software (see the COPYRIGHT file).

You may develop Odoo modules that use the Software as a library (typically
by depending on it, importing it and using its resources), but without copying
any source code or material from the Software. You may distribute those
modules under the license of your choice, provided that this license is
compatible with the terms of the Odoo Proprietary License (For example:
LGPL, MIT, or proprietary licenses similar to this one).

It is forbidden to publish, distribute, sublicense, or sell copies of the Software
or modified copies of the Software.

The above copyright notice and this permission notice must be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with