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:
committed by
Antoni Marroig Campomar
parent
f80111203e
commit
0002cb86eb
@@ -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')
|
||||||
|
|||||||
Reference in New Issue
Block a user