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