From 60828dba271fb2b51ca580a6d4b6ad53b33e6170 Mon Sep 17 00:00:00 2001 From: Bernat Brunet Torruella Date: Fri, 21 Sep 2018 09:45:35 +0200 Subject: [PATCH] Update domain filter when check shipments for modula, not take the shipemnts with module = true --- stock.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stock.py b/stock.py index 13e148b..c1b44e6 100644 --- a/stock.py +++ b/stock.py @@ -204,6 +204,7 @@ class ShipmentOut(metaclass=PoolMeta): domain = [ ('state', '=', 'assigned'), + ('systemlogics_modula', '=', False), ] if args: domain.append( @@ -449,6 +450,7 @@ class ShipmentOutSystemlogicsModulaCheckStart(ModelView): active_ids = Transaction().context.get('active_ids', []) domain = [ ('state', '=', 'assigned'), + ('systemlogics_modula', '=', False), ] if active_ids: domain.append(