Merge PR #223 into 12.0

Signed-off-by pedrobaeza
This commit is contained in:
OCA-git-bot
2021-05-11 10:12:09 +00:00

View File

@@ -101,7 +101,10 @@ class SaleOrderLine(models.Model):
rely on the matching of sale order and pickings demands, but if those rely on the matching of sale order and pickings demands, but if those
were manually changed, it could lead to inconsistencies""" were manually changed, it could lead to inconsistencies"""
self.ensure_one() self.ensure_one()
if self.product_id and not self.product_id._is_phantom_bom(): if (
self.product_id and not self.product_id._is_phantom_bom() or
not self.product_uom_qty
):
return 0 return 0
component_demand = sum( component_demand = sum(
self.move_ids.filtered( self.move_ids.filtered(