[FIX] purchase_requisition: unnecessary PO confirmation
When a PO is created from a Purchase Requisition, two delivery orders are created instead of one. opw-684347
This commit is contained in:
@@ -257,11 +257,6 @@ class purchase_requisition(osv.osv):
|
||||
if not confirm:
|
||||
raise UserError(_('You have no line selected for buying.'))
|
||||
|
||||
#check for complete RFQ
|
||||
for quotation in tender.purchase_ids:
|
||||
if (self.check_valid_quotation(cr, uid, quotation, context=context)):
|
||||
#Set PO state to confirm
|
||||
po.button_confirm(cr, uid, [quotation.id], context=context)
|
||||
|
||||
#get other confirmed lines per supplier
|
||||
for po_line in tender.po_line_ids:
|
||||
|
||||
Reference in New Issue
Block a user