From 423d7de324efccbe24949509c97885a41df546fe Mon Sep 17 00:00:00 2001 From: Sergi Almacellas Abellana Date: Thu, 3 Mar 2016 09:37:13 +0100 Subject: [PATCH] Ensure move done is True for non line lines issue5346 review24791003 --- purchase.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/purchase.py b/purchase.py index 571dced6d8..317cb8b485 100644 --- a/purchase.py +++ b/purchase.py @@ -996,7 +996,7 @@ class PurchaseLine(ModelSQL, ModelView): def get_move_done(self, name): Uom = Pool().get('product.uom') done = True - if not self.product: + if self.type != 'line' or not self.product: return True if self.product.type == 'service': return True