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:
Log in to Odoo.
Go to the "Invoicing" module.
Create a new invoice.
Set the invoice value to 0.
Complete the invoice creation process.
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:
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:
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
Configuration information Operating System: Python version: