[FIX] quality_control_stock:

* Omit lot when it's not present
* Change icon set
This commit is contained in:
Pedro M. Baeza
2015-01-05 04:44:24 +01:00
committed by Enrique Martín
parent 73ad317482
commit c742b7fbf4
2 changed files with 2 additions and 1 deletions

View File

@@ -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