mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
[ADD] explicit dependency on sale_mrp to cover a case where sale.order.mrp_production_count is not found during execution of test. mrp_production_count is defined in sale_mrp.
This commit is contained in:
@@ -13,8 +13,7 @@
|
||||
"application": False,
|
||||
"installable": True,
|
||||
"depends": [
|
||||
"mrp",
|
||||
"sale",
|
||||
"sale_mrp",
|
||||
"sale_stock",
|
||||
],
|
||||
"data": [
|
||||
|
||||
@@ -41,6 +41,4 @@ class StockRule(models.Model):
|
||||
moves = moves.move_dest_ids
|
||||
line_ids |= moves.sale_line_id
|
||||
res["sale_line_ids"] = line_ids and [(4, x.id) for x in line_ids] or False
|
||||
return res # eg in case of orderpoint generating MO
|
||||
line_ids = moves.sale_line_id
|
||||
return res
|
||||
|
||||
Reference in New Issue
Block a user