From 6c9d1cefa2552461efe8f06f83c7d514380e0275 Mon Sep 17 00:00:00 2001 From: Daniel Dico Date: Sat, 23 Jan 2016 00:14:52 -0500 Subject: [PATCH] [FIX] mrp_production_real_cost - override _costs_generate to avoid duplicates. --- mrp_production_real_cost/models/mrp_production.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/mrp_production_real_cost/models/mrp_production.py b/mrp_production_real_cost/models/mrp_production.py index 49b5f4e0c..23dcbf9c5 100644 --- a/mrp_production_real_cost/models/mrp_production.py +++ b/mrp_production_real_cost/models/mrp_production.py @@ -73,3 +73,13 @@ class MrpProduction(models.Model): 'product_uom_id': product.uom_id.id, 'general_account_id': general_account.id, } + + @api.multi + def _costs_generate(self): + """ + As we are generating the account_analytic_lines for MO in the + current module, we override this method in order to avoid + duplicates created in the parent class. Any other module + inheriting this method should take this into account! + """ + return