Mayur Maheshwari(OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-bug-908064-mma into 
lp:openobject-addons.

Requested reviews:
  Rucha (Open ERP) (rpa-openerp)
Related bugs:
  Bug #908064 in OpenERP Addons: "gives a error when add two quotation of same 
partner"
  https://bugs.launchpad.net/openobject-addons/+bug/908064

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-908064-mma/+merge/86799

Hello,

    purchase_requisition: I have add a proper name on warring message

Thanks.
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-908064-mma/+merge/86799
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-bug-908064-mma.
=== modified file 'purchase_requisition/purchase_requisition.py'
--- purchase_requisition/purchase_requisition.py	2011-12-19 16:54:40 +0000
+++ purchase_requisition/purchase_requisition.py	2011-12-23 11:35:31 +0000
@@ -133,7 +133,7 @@
         res = {}
         for requisition in self.browse(cr, uid, ids, context=context):
             if supplier.id in filter(lambda x: x, [rfq.state <> 'cancel' and rfq.partner_id.id or None for rfq in requisition.purchase_ids]):
-                 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)
+                 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.') % rfq.state)
             location_id = requisition.warehouse_id.lot_input_id.id
             purchase_id = purchase_order.create(cr, uid, {
                         'origin': requisition.name,

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to