mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
[FIX] Little changes in quality modules
This commit is contained in:
@@ -28,7 +28,7 @@ class QcInspection(models.Model):
|
||||
if self.object_id._name == 'stock.pack.operation':
|
||||
self.lot = self.object_id.lot_id
|
||||
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.depends('object_id')
|
||||
|
||||
Reference in New Issue
Block a user