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,14 +20,14 @@ class RmaMakePicking(models.TransientModel):
|
|||||||
if procurement.purchase_id and \
|
if procurement.purchase_id and \
|
||||||
procurement.purchase_id.id:
|
procurement.purchase_id.id:
|
||||||
po_list.append(procurement.purchase_id.id)
|
po_list.append(procurement.purchase_id.id)
|
||||||
if po_list:
|
|
||||||
if len(po_list):
|
if len(po_list):
|
||||||
action = self.env.ref('purchase.purchase_rfq')
|
action = self.env.ref('purchase.purchase_rfq')
|
||||||
result = action.read()[0]
|
result = action.read()[0]
|
||||||
result['domain'] = [('id', 'in', po_list)]
|
result['domain'] = [('id', 'in', po_list)]
|
||||||
return result
|
return result
|
||||||
action = super(RmaMakePicking, self)._get_action(
|
else:
|
||||||
pickings, procurements)
|
action = super(RmaMakePicking, self)._get_action(pickings,
|
||||||
|
procurements)
|
||||||
return action
|
return action
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user