Ensure move done is True for non line lines
issue5346 review24791003
This commit is contained in:
1 parent
e014ff60b5
commit
423d7de324
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user