From 4f1e3addc53d6c3a6976a55a3933f08edc6b0427 Mon Sep 17 00:00:00 2001 From: Daniel Dico Date: Wed, 20 Jan 2016 11:46:06 -0500 Subject: [PATCH] [FIX] mrp_production_real_cost - create analytic lines before calling action_done --- .../models/mrp_production_workcenter_line.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mrp_production_real_cost/models/mrp_production_workcenter_line.py b/mrp_production_real_cost/models/mrp_production_workcenter_line.py index 8a60546c89..170636f8b6 100644 --- a/mrp_production_real_cost/models/mrp_production_workcenter_line.py +++ b/mrp_production_real_cost/models/mrp_production_workcenter_line.py @@ -97,7 +97,7 @@ def action_pause(self): @api.multi def action_done(self): - result = super(MrpProductionWorkcenterLine, self).action_done() self._create_analytic_line() self._create_pre_post_cost_lines(cost_type='post') + result = super(MrpProductionWorkcenterLine, self).action_done() return result