mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
[15.0][MIG] mrp_production_putaway_strategy: Migration to 15.0
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
"name": "MRP Production Putaway Strategy",
|
||||
"summary": "Applies putaway strategies to manufacturing orders for "
|
||||
"finished products.",
|
||||
"version": "14.0.1.0.0",
|
||||
"version": "15.0.1.0.0",
|
||||
"author": "ForgeFlow, " "Odoo Community Association (OCA)",
|
||||
"website": "https://github.com/OCA/manufacture",
|
||||
"category": "Manufacture",
|
||||
|
||||
@@ -16,9 +16,13 @@ class MrpProduction(models.Model):
|
||||
vals["location_dest_id"] = location_id.id
|
||||
mo = super(MrpProduction, self).create(vals)
|
||||
if location_id:
|
||||
message = _(
|
||||
"Applied Putaway strategy to finished products.\n"
|
||||
"Finished Products Location: %s." % mo.location_dest_id.complete_name
|
||||
message = (
|
||||
_(
|
||||
"Applied Putaway strategy to finished products.\n Finished "
|
||||
"Products Location: %s. "
|
||||
)
|
||||
% mo.location_dest_id.complete_name
|
||||
)
|
||||
|
||||
mo.message_post(body=message, message_type="comment")
|
||||
return mo
|
||||
|
||||
Reference in New Issue
Block a user