1302
1302
"""Create 1 PO for the main supplier"""
1303
1303
"""Get the main supplier = the 1st product supplier with sequence = 1"""
1304
cr.execute('select name from product_supplierinfo where product_id = %d and sequence = 1', (pline.product_id.id,))
1304
cr.execute('select name from product_supplierinfo where product_id = %s and sequence = 1', (pline.product_id.id,))
1306
1306
supplier = self.pool.get('res.partner').browse(cr,uid,[res[0]])[0]