[8.0][FIX]mrp_production_real_cost: fix error in old api inherit

The function '_costs_generate' has an api.multi, expecting that
the 3rd parameter in old API is 'ids', but it is a 'mrp.production'
record instead. Convert to api.model resolves the error.
This commit is contained in:
Mauro
2016-09-07 10:01:34 +02:00
parent e81124e48c
commit 4a66b879a1

View File

@@ -81,8 +81,8 @@ class MrpProduction(models.Model):
'general_account_id': general_account.id,
}
@api.multi
def _costs_generate(self):
@api.model
def _costs_generate(self, production):
"""
As we are generating the account_analytic_lines for MO in the
current module, we override this method in order to avoid