mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user