mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
[FIX] action returned when creating purchase orders from rma
This commit is contained in:
committed by
Chanakya Soni
parent
6f10747011
commit
c607e40776
@@ -109,16 +109,10 @@ class RmaLineMakePurchaseOrder(models.TransientModel):
|
||||
po_line_obj.create(po_line_data)
|
||||
res.append(purchase.id)
|
||||
|
||||
return {
|
||||
'domain': "[('id','in', ["+','.join(map(str, res))+"])]",
|
||||
'name': _('Request for Quotation'),
|
||||
'view_type': 'form',
|
||||
'view_mode': 'tree,form',
|
||||
'res_model': 'purchase.order',
|
||||
'view_id': False,
|
||||
'context': False,
|
||||
'type': 'ir.actions.act_window'
|
||||
}
|
||||
action = self.env.ref('purchase.purchase_rfq')
|
||||
result = action.read()[0]
|
||||
result['domain'] = "[('id','in', ["+','.join(map(str, res))+"])]"
|
||||
return result
|
||||
|
||||
|
||||
class RmaLineMakePurchaseOrderItem(models.TransientModel):
|
||||
|
||||
Reference in New Issue
Block a user