diff --git a/crm_rma_prodlot_supplier/models/stock_production_lot.py b/crm_rma_prodlot_supplier/models/stock_production_lot.py index fa7698e5..1d516963 100644 --- a/crm_rma_prodlot_supplier/models/stock_production_lot.py +++ b/crm_rma_prodlot_supplier/models/stock_production_lot.py @@ -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: