From 86cdced4c75594fa8cc708a430182e9cdb723e38 Mon Sep 17 00:00:00 2001 From: Andrii Skrypka Date: Mon, 25 Nov 2019 21:02:46 +0200 Subject: [PATCH] [FIX] mrp_production_putaway_strategy: TypeError: message_post() takes 1 positional argument but 2 were given --- mrp_production_putaway_strategy/models/mrp_production.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mrp_production_putaway_strategy/models/mrp_production.py b/mrp_production_putaway_strategy/models/mrp_production.py index e7d84c224..47c5b33f7 100644 --- a/mrp_production_putaway_strategy/models/mrp_production.py +++ b/mrp_production_putaway_strategy/models/mrp_production.py @@ -21,5 +21,5 @@ class MrpProduction(models.Model): "Applied Putaway strategy to finished products.\n" "Finished Products Location: %s." % mo.location_dest_id.complete_name) - mo.message_post(message, message_type='comment') + mo.message_post(body=message, message_type='comment') return mo