Ensure move done is True for non line lines

issue5346
review24791002
This commit is contained in:
Sergi Almacellas Abellana committed 2016-03-03 09:37:56 +01:00
1 parent c9854208b9
commit 8b49630747
1 file changed
+1 -1
+1 -1
View File
@@ -1106,7 +1106,7 @@ class SaleLine(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