Do not try to fulfill move not linked to a Shopify order line

Closes #14232
This commit is contained in:
Cédric Krier
2025-09-16 10:57:50 +02:00
parent da9cc4bb87
commit 9e725456fd
+2 -1
View File
@@ -144,7 +144,8 @@ class Move(metaclass=PoolMeta):
pool = Pool()
SaleLine = pool.get('sale.line')
Uom = pool.get('product.uom')
if not isinstance(self.origin, SaleLine):
if (not isinstance(self.origin, SaleLine)
or not self.origin.shopify_identifier):
return
identifier = self.origin.shopify_identifier
quantity = int(Uom.compute_qty(