[IMP]Purchase Requisition:Improve string

bzr revid: ron@tinyerp.com-20110301104522-jii69dd9w7eubpex
This commit is contained in:
ron@tinyerp.com 2011-03-01 16:15:22 +05:30
parent 3ee1e7c94a
commit 33800b2e8f
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 have already one %s quotation for this partner, you must cancel this quotation to create a new quotation."
msgid "You have already one %s purchase order for this partner, you must cancel this purchase order to create a new quotation."
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 have already one %s quotation for this partner, you must cancel this quotation to create a new quotation.') % supp_record.state)
raise osv.except_osv(_('Warning'), _('You have already one %s purchase order for this partner, you must cancel this purchase order to create a new quotation.') % supp_record.state)
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