[IMP] mrp_production_real_cost - save corect WO on AAL

This commit is contained in:
Daniel Dico
2016-01-24 09:49:07 -05:00
parent 8d5cd3e357
commit 5a1ea783e0

View File

@@ -12,6 +12,5 @@ class AccountAnalyticLine(models.Model):
mrp_production_id = fields.Many2one(
comodel_name='mrp.production', string='Manufacturing Order')
workorder = fields.Many2one(
comodel_name='mrp.production.workcenter.line', string='Work Order',
related="task_id.workorder", store=True)
comodel_name='mrp.production.workcenter.line', string='Work Order')
task_id = fields.Many2one('project.task', 'Project Task')