mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
[FIX] quality_control_stock:
* Omit lot when it's not present * Change icon set
This commit is contained in:
committed by
Enrique Martín
parent
73ad317482
commit
c742b7fbf4
@@ -28,7 +28,8 @@ 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.lot_ids[0]
|
||||
if self.object_id.lot_ids:
|
||||
self.lot = self.object_id.lot_ids[0]
|
||||
|
||||
@api.one
|
||||
@api.depends('object_id')
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 9.0 KiB |
Reference in New Issue
Block a user