From 49c8351f3774e1af3738e39b0607b0abb3c68fb5 Mon Sep 17 00:00:00 2001
From: nouraellm <nea@odoo.com>
Date: Tue, 13 Sep 2022 22:42:31 +0000
Subject: [PATCH] [FIX] stock: fix todo filter for product moves

Steps to reproduce:
- Create a transfer and choose whatever operation
- Enable detailed operations option for the operation
- Check availability and set quantities
- Cancel the transfer then Go to Product Moves

Current behavior:
- todo filter is broken, it shows canceled moves

Desired behavior:
- Show only moves that are assigned or waiting

- Task id: #2981249

closes odoo/odoo#100265

Signed-off-by: Tiffany Chang <tic@odoo.com>
---
 addons/stock/views/stock_move_line_views.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/addons/stock/views/stock_move_line_views.xml b/addons/stock/views/stock_move_line_views.xml
index 6373683ef0ba..4dace032a7b6 100644
--- a/addons/stock/views/stock_move_line_views.xml
+++ b/addons/stock/views/stock_move_line_views.xml
@@ -73,7 +73,7 @@
                 <field name="location_id" string="Source Location" groups="stock.group_stock_multi_locations"/>
                 <field name="location_dest_id" string="Destination Location" groups="stock.group_stock_multi_locations"/>
                 <separator/>
-                <filter string="To Do" name="todo" domain="[('state', 'not in', ['done', 'draft'])]"/>
+                <filter string="To Do" name="todo" domain="[('state', 'not in', ['done', 'draft', 'cancel'])]"/>
                 <filter string="Done" name="done" domain="[('state', '=', 'done')]"/>
                 <separator/>
                 <filter string="Incoming" name="incoming" domain="[('picking_id.picking_type_id.code', '=', 'incoming')]"/>
-- 
GitLab