OCA/edi

Invalid XML invoice according to Mustang app if invoice and company have different currency

piemar1 opened this issue · 1 comments

Module

account_invoice_facturx in 16.0

Describe the bug

XML invoices created in Odoo have errors identified by Mustang app.

To Reproduce

Affected versions:

Steps to reproduce the behavior:

  1. Set company currency as EUR or USD
  2. Create and confirm simple one line invoice (tax 15%), with currency different than company currency, EUR or USD
  3. Create xml for the invoice and check it validity with Mustang app
  4. In case company currency is USD and invoice is EUR:
    obraz
  5. In case company currency is EUR and invoice is USD:
    obraz

Expected behavior
XML invoices should be valid in both above cases:

  • In case company currency is USD and invoice is EUR:
  • In case company currency is EUR and invoice is USD

Additional context
Mustang app > https://www.mustangproject.org/

command to run Mustang and check invoice:

  • java -jar Mustang-CLI-2.9.0.jar --no-notices --action validate --source factur-x.xml

There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.