Do not supply on sale manual shipments

issue10137
review347741002
This commit is contained in:
Sergi Almacellas Abellana
2021-03-27 21:06:59 +01:00
parent 654cd1d30e
commit 004531eaf6
+1
View File
@@ -106,6 +106,7 @@ class Line(metaclass=PoolMeta):
def supply_on_sale(self):
"Returns True if the sale line has to be supply by purchase request"
if (self.type != 'line'
or self.sale.shipment_method == 'manual'
or not self.product
or self.quantity <= 0
or any(m.state not in ['staging', 'cancelled']