mirror of
https://github.com/OCA/rma.git
synced 2025-02-16 17:11:47 +02:00
@@ -101,7 +101,10 @@ class SaleOrderLine(models.Model):
|
||||
rely on the matching of sale order and pickings demands, but if those
|
||||
were manually changed, it could lead to inconsistencies"""
|
||||
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
|
||||
component_demand = sum(
|
||||
self.move_ids.filtered(
|
||||
|
||||
Reference in New Issue
Block a user