From 3ac0b6a7b985de834ced8a9c9ad909243d540b38 Mon Sep 17 00:00:00 2001 From: "ron@tinyerp.com" <> Date: Tue, 20 Sep 2011 14:32:22 +0530 Subject: [PATCH] [IMP]Procurment: Fixed:when scheduler is run by admin all new PO of other company/warehouse is having wrong company (of admin) instead of respective bzr revid: ron@tinyerp.com-20110920090222-np5er3i3q9onay07 --- addons/procurement/schedulers.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/procurement/schedulers.py b/addons/procurement/schedulers.py index 29ce2dd0a11..87cd55d7084 100644 --- a/addons/procurement/schedulers.py +++ b/addons/procurement/schedulers.py @@ -254,6 +254,7 @@ class procurement_order(osv.osv): 'date_planned': newdate.strftime('%Y-%m-%d'), 'product_id': op.product_id.id, 'product_qty': qty, + 'company_id': op.company_id.id, 'product_uom': op.product_uom.id, 'location_id': op.location_id.id, 'procure_method': 'make_to_order',