diff --git a/modules/purchase/purchase.py b/modules/purchase/purchase.py index 3a42cbed94..63fcfa3d33 100644 --- a/modules/purchase/purchase.py +++ b/modules/purchase/purchase.py @@ -745,7 +745,11 @@ class Purchase( def check_for_quotation(self): for line in self.lines: - if (not line.to_location + if (line.quantity or 0) >= 0: + location = line.to_location + else: + location = line.from_location + if (not location and line.product and line.product.type in ('goods', 'assets')): raise PurchaseQuotationError(