[FIX] Little changes in quality modules

This commit is contained in:
oihane
2014-12-19 11:17:08 +01:00
committed by Antoni Marroig Campomar
parent f80111203e
commit 0002cb86eb

View File

@@ -28,7 +28,7 @@ class QcInspection(models.Model):
if self.object_id._name == 'stock.pack.operation': if self.object_id._name == 'stock.pack.operation':
self.lot = self.object_id.lot_id self.lot = self.object_id.lot_id
elif self.object_id._name == 'stock.move': elif self.object_id._name == 'stock.move':
self.lot = self.object_id.lots_id[0] self.lot = self.object_id.lot_ids[0]
@api.one @api.one
@api.depends('object_id') @api.depends('object_id')