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:
@@ -3,7 +3,7 @@
|
||||
{
|
||||
"name": "Valued picking linked with MRP Kits",
|
||||
"summary": "Allow to summarize the picking related with the selled kits",
|
||||
"version": "12.0.1.0.0",
|
||||
"version": "12.0.1.0.1",
|
||||
"development_status": "Beta",
|
||||
"category": "Warehouse Management",
|
||||
"website": "https://github.com/OCA/stock-logistics-reporting",
|
||||
|
||||
@@ -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