From 6424a05fbc0a9cca40e564e350da41b3847aa305 Mon Sep 17 00:00:00 2001 From: cubells Date: Wed, 19 Oct 2016 22:59:48 +0200 Subject: [PATCH] [FIX] crm_rma_prodlot_supplier: better inheritance --- crm_rma_prodlot_supplier/models/stock_production_lot.py | 3 +++ 1 file changed, 3 insertions(+) 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: