~unifield-team/unifield-wm/us-927

« back to all changes in this revision

Viewing changes to tender_flow/tender_flow.py

  • Committer: Olivier DOSSMANN
  • Date: 2013-03-22 13:35:49 UTC
  • mto: This revision was merged to the branch mainline in revision 1589.
  • Revision ID: od@tempo-consulting.fr-20130322133549-vnmjtnuysyee7q3e
UF-1894 [MOVE] msf_supply_doc_import to msf_doc_import directory

Show diffs side-by-side

added added

removed removed

Lines of Context:
221
221
                po_id = po_obj.create(cr, uid, values, context=dict(context, partner_id=supplier.id, rfq_ok=True))
222
222
                
223
223
                for line in tender.tender_line_ids:
224
 
                    if line.product_id.id == obj_data.get_object_reference(cr, uid,'msf_supply_doc_import', 'product_tbd')[1]:
 
224
                    if line.product_id.id == obj_data.get_object_reference(cr, uid,'msf_doc_import', 'product_tbd')[1]:
225
225
                        raise osv.except_osv(_('Warning !'), _('You can\'t have "To Be Defined" for the product. Please select an existing product.'))
226
226
                    # create an order line for each tender line
227
227
                    price = pricelist_obj.price_get(cr, uid, [pricelist_id], line.product_id.id, line.qty, supplier.id, {'uom': line.product_uom.id})[pricelist_id]