[15.0][MIG] mrp_production_putaway_strategy: Migration to 15.0

This commit is contained in:
Joan Mateu Jordi
2022-02-01 13:46:49 +01:00
parent 811e68113e
commit 56310b05da
2 changed files with 8 additions and 4 deletions

View File

@@ -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",

View File

@@ -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