mirror of
https://github.com/OCA/stock-logistics-reporting.git
synced 2025-02-16 17:13:21 +02:00
[FIX] stock_picking_report_valued_sale_mrp: error when no sale line
This commit is contained in:
@@ -26,7 +26,8 @@ class StockMoveLine(models.Model):
|
||||
def _compute_phantom_product_id(self):
|
||||
"""Relate every line with its kit product"""
|
||||
for line in self.filtered(
|
||||
lambda x: x.sale_line.product_id._is_phantom_bom()):
|
||||
lambda x: x.sale_line and
|
||||
x.sale_line.product_id._is_phantom_bom()):
|
||||
line.phantom_product_id = line.sale_line.product_id
|
||||
|
||||
def _compute_sale_order_line_fields(self):
|
||||
|
||||
Reference in New Issue
Block a user