[FIX] crm_rma_prodlot_supplier: better inheritance

This commit is contained in:
cubells
2016-10-19 22:59:48 +02:00
parent 3ab519c46f
commit 6424a05fbc

View File

@@ -46,6 +46,9 @@ class StockProductionLot(models.Model):
res = super(StockProductionLot, self).default_get(fields_list)
prodlot_obj = self.env['stock.production.lot']
if self._context.get('active_model') != 'stock.transfer_details_items':
return res
transfer_item_id = self._context.get('active_id', False)
if not transfer_item_id: