mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
Revert "[FIX] TypeError: unhashable type: 'list'"
This reverts commit 6443a8147c0cc4839577949ab7444a89a0c81927.
This commit is contained in:
committed by
Chanakya Soni
parent
42613193c9
commit
780bd02f6c
@@ -20,15 +20,15 @@ class RmaMakePicking(models.TransientModel):
|
||||
if procurement.purchase_id and \
|
||||
procurement.purchase_id.id:
|
||||
po_list.append(procurement.purchase_id.id)
|
||||
if po_list:
|
||||
if len(po_list):
|
||||
action = self.env.ref('purchase.purchase_rfq')
|
||||
result = action.read()[0]
|
||||
result['domain'] = [('id', 'in', po_list)]
|
||||
return result
|
||||
action = super(RmaMakePicking, self)._get_action(
|
||||
pickings, procurements)
|
||||
return action
|
||||
if len(po_list):
|
||||
action = self.env.ref('purchase.purchase_rfq')
|
||||
result = action.read()[0]
|
||||
result['domain'] = [('id', 'in', po_list)]
|
||||
return result
|
||||
else:
|
||||
action = super(RmaMakePicking, self)._get_action(pickings,
|
||||
procurements)
|
||||
return action
|
||||
|
||||
|
||||
class RmaMakePickingItem(models.TransientModel):
|
||||
|
||||
Reference in New Issue
Block a user