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)
|
po_line_obj.create(po_line_data)
|
||||||
res.append(purchase.id)
|
res.append(purchase.id)
|
||||||
|
|
||||||
return {
|
action = self.env.ref('purchase.purchase_rfq')
|
||||||
'domain': "[('id','in', ["+','.join(map(str, res))+"])]",
|
result = action.read()[0]
|
||||||
'name': _('Request for Quotation'),
|
result['domain'] = "[('id','in', ["+','.join(map(str, res))+"])]"
|
||||||
'view_type': 'form',
|
return result
|
||||||
'view_mode': 'tree,form',
|
|
||||||
'res_model': 'purchase.order',
|
|
||||||
'view_id': False,
|
|
||||||
'context': False,
|
|
||||||
'type': 'ir.actions.act_window'
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
class RmaLineMakePurchaseOrderItem(models.TransientModel):
|
class RmaLineMakePurchaseOrderItem(models.TransientModel):
|
||||||
|
|||||||
Reference in New Issue
Block a user