From 0c8ebe05d78a297378a8b1ca65ec14f66a9e37ed Mon Sep 17 00:00:00 2001 From: amoyaux Date: Tue, 8 Aug 2017 16:37:40 +0200 Subject: [PATCH] [REF] stock : remove old/useless function This commit remove the _filter_closed_move function that is no more used since the refactoring introduced in saas-17 --- addons/stock/models/stock_move.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/addons/stock/models/stock_move.py b/addons/stock/models/stock_move.py index c719f9700af..74cb5c0361a 100644 --- a/addons/stock/models/stock_move.py +++ b/addons/stock/models/stock_move.py @@ -442,14 +442,6 @@ class StockMove(models.Model): # Misc tools # ------------------------------------------------------------ - def _filter_closed_moves(self): - """ Helper methods when having to avoid working on moves that are - already done or canceled. In a lot of cases you may handle a batch - of stock moves, some being already done / canceled, other being still - under computation. Instead of having to use filtered everywhere and - forgot some of them, use this tool instead. """ - return self.filtered(lambda move: move.state not in ('done', 'cancel')) - @api.multi def do_unreserve(self): if any(move.state in ('done', 'cancel') for move in self):