Skip to content

Commit

Permalink
[FIX] account: cancelled invoices show in unpaid filter
Browse files Browse the repository at this point in the history
In account dashboard click on unpaid invoice : cancelled invoice are visibles

closes odoo#52696

Signed-off-by: Quentin De Paoli (qdp) <[email protected]>
  • Loading branch information
fmdl committed Jun 19, 2020
1 parent eac8c06 commit 241244f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions addons/account/views/account_move_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1076,10 +1076,11 @@
<separator/>
<filter name="draft" string="Draft" domain="[('state','=','draft')]"/>
<filter name="posted" string="Posted" domain="[('state', '=', 'posted')]"/>
<filter name="cancel" string="Cancelled" domain="[('state', '=', 'cancel')]"/>
<separator/>
<filter name="in_payment" string="In Payment" domain="[('invoice_payment_state', '=', 'in_payment')]"/>
<filter name="paid" string="Paid" domain="[('invoice_payment_state', '=', 'paid')]"/>
<filter name="unpaid" string="Not Paid" domain="[('invoice_payment_state', '=', 'not_paid')]"/>
<filter name="in_payment" string="In Payment" domain="[('invoice_payment_state', '=', 'in_payment'), ('state', '=', 'posted')]"/>
<filter name="paid" string="Paid" domain="[('invoice_payment_state', '=', 'paid'), ('state', '=', 'posted')]"/>
<filter name="unpaid" string="Not Paid" domain="[('invoice_payment_state', '=', 'not_paid'), ('state', '=', 'posted')]"/>
<filter name="late" string="Overdue" domain="['&amp;', ('invoice_date_due', '&lt;', time.strftime('%%Y-%%m-%%d')), ('state', '=', 'posted'), ('invoice_payment_state', '=', 'not_paid')]" help="Overdue invoices, maturity date passed"/>
<separator/>
<filter name="invoice_date" string="Invoice Date" date="invoice_date"/>
Expand Down

0 comments on commit 241244f

Please sign in to comment.