Ensure move done is True for non line lines

issue5346
review24791003
This commit is contained in:
Sergi Almacellas Abellana committed 2016-03-03 09:37:13 +01:00
1 parent e014ff60b5
commit 423d7de324
1 file changed
+1 -1
+1 -1
View File
@@ -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