Merge pull request #80 from ddico/submit_override_costs_generate

[FIX] mrp_production_real_cost - override _costs_generate to avoid duplicates
This commit is contained in:
Pedro M. Baeza
2016-01-28 23:41:13 +01:00

View File

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