indexa-git / l10n-dominicana

Repositorio con las funcionalidades básicas para la emisión de facturas fiscales dominicanas en Odoo.
GNU Lesser General Public License v3.0
100 stars 128 forks source link

[15.0][BUG] Fiscal Invoices with 0 Value Should Not Validate or Should Be Cancelable in "Paid" State #1075

Closed dixgrake closed 1 year ago

dixgrake commented 1 year ago

Type: General

Describe the bug Odoo Version: 15.0

When creating a fiscal invoice with a value of 0, the invoice is allowed to be created, and it is marked as "Paid" which is problematic. This prevents the cancellation of the invoice since it's in the "Paid" state.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Log in to Odoo.
  2. Go to the "Invoicing" module.
  3. Create a new invoice.
  4. Set the invoice value to 0.
  5. Complete the invoice creation process.
  6. Notice that the invoice is marked as "Paid".

Expected behavior

The expected behavior is that fiscal invoices with a value of 0 should not be allowed to validate. Additionally, these invoices should be able to be canceled if they are in a "Paid" state, regardless of whether they have a reconciled payment or not.

Additional context and screenshots

No additional context or screenshots provided at the moment.

Sample Code / Stack Trace

No code sample or stack trace available.

Configuration information Operating System: Python version:

jose-pcg commented 1 year ago

Resuelto en #1087