[IMP]Purchase Requisition:Quotes tab allows identical rfqs from same supplier

bzr revid: ron@tinyerp.com-20110224104036-uepef8frgbsswgzq
This commit is contained in:
ron@tinyerp.com 2011-02-24 16:10:36 +05:30
parent 55cd652fe7
commit faf349adf9
2 changed files with 2 additions and 2 deletions

View File

@ -397,6 +397,6 @@ msgstr ""
#. module: purchase_requisition
#: code:addons/purchase_requisition/wizard/purchase_requisition_partner.py:90
#, python-format
msgid "You cannot create Quotation for %s which has already one quotation for this Requisition."
msgid "You cannot create Quotation for %s which has already one quotation for this Requisition,Quotation should be cancel first."
msgstr ""

View File

@ -87,7 +87,7 @@ class purchase_requisition_partner(osv.osv_memory):
for tender in tender_obj.browse(cr, uid, record_ids, context=context):
for supp_record in tender.purchase_ids:
if supp_record.partner_id.id == partner_id and supp_record.state <> 'cancel':
raise osv.except_osv(_('Warning'), _('You cannot create Quotation for %s which has already one quotation for this Requisition.') %supp_record.partner_id.name)
raise osv.except_osv(_('Warning'), _('You cannot create Quotation for %s which has already one quotation for this Requisition,Quotation should be cancel first.') %supp_record.partner_id.name)
for line in tender.line_ids:
partner_list = sorted([(partner.sequence, partner) for partner in line.product_id.seller_ids if partner])
partner_rec = partner_list and partner_list[0] and partner_list[0][1] or False