mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
[FIX] mrp_multi_level: do not include supplies on origin.
Planned orders' origin when groupping was including supplies which could lead to confusion.
This commit is contained in:
committed by
JasminSForgeFlow
parent
6f0e263718
commit
bacbcd35ad
@@ -43,6 +43,7 @@
|
||||
<field name="product_id" />
|
||||
<field name="mrp_area_id" />
|
||||
<field name="name" />
|
||||
<field name="origin" />
|
||||
<field name="fixed" />
|
||||
</group>
|
||||
<group>
|
||||
|
||||
@@ -541,7 +541,8 @@ class MultiLevelMrp(models.TransientModel):
|
||||
else:
|
||||
last_date = fields.Date.from_string(move.mrp_date)
|
||||
onhand += move.mrp_qty
|
||||
demand_origin.append(move.origin or move.name or "")
|
||||
if move.mrp_type == "d":
|
||||
demand_origin.append(move.origin or move.name)
|
||||
|
||||
if last_date and last_qty != 0.00:
|
||||
name = _(
|
||||
|
||||
Reference in New Issue
Block a user