[FIX] point_of_sale: filter not invoiced orders in pos reporting

Versions:
---------
- 14.0+

Steps to reproduce:
-------------------
1. Go to POS -> Start a new session
2. Sell some orders and make some of them not invoiced and invoice the others
3. Go to POS -> Reporting -> Orders
4. Filter by not invoiced -> the chart becomes empty

Issue:
------
The filter for not invoiced orders in POS reporting is not working properly

Cause:
------
The filter not_invoiced is only filtering the orders with state paid, but it is
ignoring all the orders with state done

Solution:
---------
Add the state ‘done’ in the not_invoiced filter

OPW-3349139

closes odoo/odoo#127155

X-original-commit: 6546597fc63771951b28dd819896ea54de16b9da
Signed-off-by: Joseph Caburnay (jcb) <jcb@odoo.com>
This commit is contained in:
Matheus Leal Viana (malv)
2023-07-04 10:16:15 +02:00
parent 0e8e7935aa
commit f69a6f3749
@@ -50,7 +50,7 @@
<field name="date"/>
<separator/>
<filter string="Invoiced" name="invoiced" domain="[('state','=',('invoiced'))]"/>
<filter string="Not Invoiced" name="not_invoiced" domain="[('state','=',('paid'))]"/>
<filter string="Not Invoiced" name="not_invoiced" domain="[('state','in',['paid', 'done'])]"/>
<separator/>
<filter name="filter_date" date="date"/>
<field name="config_id"/>