mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
[IMP] mrp_multi_level: Minor changes
* Planned Orders become fixed on manual creation by default * Released Quantity become readonly * Add product reference if Planned Order name is not defined on bom explosion
This commit is contained in:
@@ -42,8 +42,8 @@ class MrpPlannedOrder(models.Model):
|
|||||||
due_date = fields.Date(
|
due_date = fields.Date(
|
||||||
string="Due Date", help="Date in which the supply must have been completed."
|
string="Due Date", help="Date in which the supply must have been completed."
|
||||||
)
|
)
|
||||||
qty_released = fields.Float()
|
qty_released = fields.Float(readonly=True)
|
||||||
fixed = fields.Boolean()
|
fixed = fields.Boolean(default=True)
|
||||||
mrp_qty = fields.Float(string="Quantity")
|
mrp_qty = fields.Float(string="Quantity")
|
||||||
mrp_move_down_ids = fields.Many2many(
|
mrp_move_down_ids = fields.Many2many(
|
||||||
comodel_name="mrp.move",
|
comodel_name="mrp.move",
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
* Wim Audenaert <wim.audenaert@ucamco.com>
|
* Wim Audenaert <wim.audenaert@ucamco.com>
|
||||||
* Jordi Ballester <jordi.ballester@forgeflow.com>
|
* Jordi Ballester <jordi.ballester@forgeflow.com>
|
||||||
* Lois Rilo <lois.rilo@forgeflow.com>
|
* Lois Rilo <lois.rilo@forgeflow.com>
|
||||||
|
* Héctor Villarreal <hector.villarreal@forgeflow.com>
|
||||||
|
|||||||
@@ -1,3 +1,29 @@
|
|||||||
|
13.0.1.2.0 (2020-02-20)
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
* [IMP] Minor changes
|
||||||
|
(`#468 <https://github.com/OCA/manufacture/pull/468>`_).
|
||||||
|
|
||||||
|
* Planned Orders become fixed on manual creation by default
|
||||||
|
* Released Quantity becomes readonly
|
||||||
|
* Add product reference if Planned Order name is not defined on bom explosion
|
||||||
|
|
||||||
|
13.0.1.1.0 (2020-02-21)
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
* [FIX] Minor changes
|
||||||
|
(`#469 <https://github.com/OCA/manufacture/pull/469>`_).
|
||||||
|
|
||||||
|
* Fix Main supplier computation in multi company
|
||||||
|
* Drop Triplicated field in search view
|
||||||
|
|
||||||
|
|
||||||
|
* [IMP] Minor changes
|
||||||
|
(`#463 <https://github.com/OCA/manufacture/pull/463>`_).
|
||||||
|
|
||||||
|
* Show supply method on MRP Inventory
|
||||||
|
* Allow no-MRP users to look into Products
|
||||||
|
|
||||||
13.0.1.0.0 (2019-12-18)
|
13.0.1.0.0 (2019-12-18)
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
|||||||
@@ -110,6 +110,7 @@ class MultiLevelMrp(models.TransientModel):
|
|||||||
"mrp_action": product_mrp_area.supply_method,
|
"mrp_action": product_mrp_area.supply_method,
|
||||||
"qty_released": 0.0,
|
"qty_released": 0.0,
|
||||||
"name": "Supply: " + name,
|
"name": "Supply: " + name,
|
||||||
|
"fixed": False,
|
||||||
}
|
}
|
||||||
|
|
||||||
@api.model
|
@api.model
|
||||||
@@ -138,9 +139,11 @@ class MultiLevelMrp(models.TransientModel):
|
|||||||
"mrp_origin": "mrp",
|
"mrp_origin": "mrp",
|
||||||
"mrp_order_number": None,
|
"mrp_order_number": None,
|
||||||
"parent_product_id": bom.product_id.id,
|
"parent_product_id": bom.product_id.id,
|
||||||
"name": ("Demand Bom Explosion: " + name).replace(
|
"name": (
|
||||||
"Demand Bom Explosion: Demand Bom " "Explosion: ",
|
"Demand Bom Explosion: %s"
|
||||||
"Demand Bom Explosion: ",
|
% (name or product.product_id.default_code or product.product_id.name)
|
||||||
|
).replace(
|
||||||
|
"Demand Bom Explosion: Demand Bom Explosion: ", "Demand Bom Explosion: "
|
||||||
),
|
),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user