=== modified file 'mrp/mrp.py' --- mrp/mrp.py 2010-08-31 14:06:17 +0000 +++ mrp/mrp.py 2010-09-02 09:14:28 +0000 @@ -847,8 +847,8 @@ phantom_bom_id = self.pool.get('mrp.bom').search(cr, uid, [ ('product_id', '=', procurement.move_id.product_id.id), ('bom_id', '=', False), - ('type', '=', 'phantom')]) - return phantom_bom_id + ('type', '=', 'phantom')]) + return phantom_bom_id return False def check_move_cancel(self, cr, uid, ids, context={}): @@ -1068,7 +1068,7 @@ if procurement.product_id.seller_ids[0].qty: qty=max(qty,procurement.product_id.seller_ids[0].qty) - price = self.pool.get('product.pricelist').price_get(cr, uid, [pricelist_id], procurement.product_id.id, qty, False, {'uom': uom_id})[pricelist_id] + price = self.pool.get('product.pricelist').price_get(cr, uid, [pricelist_id], procurement.product_id.id, qty, partner_id, {'uom': uom_id})[pricelist_id] newdate = DateTime.strptime(procurement.date_planned, '%Y-%m-%d %H:%M:%S') newdate = newdate - DateTime.RelativeDateTime(days=company.po_lead)