mirror of
https://github.com/OCA/rma.git
synced 2025-02-16 17:11:47 +02:00
[FIX] crm_rma_prodlot_supplier: better inheritance
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user