From 52c30fdd38ce90ee1c5775b0f23d7baf133ee49a Mon Sep 17 00:00:00 2001 From: "Quentin (OpenERP)" Date: Thu, 24 Oct 2013 09:50:54 +0200 Subject: [PATCH] [FIX] purchase: typo bzr revid: qdp-launchpad@openerp.com-20131024075054-mq5u06qmhd7oqwa9 --- addons/purchase/stock.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/purchase/stock.py b/addons/purchase/stock.py index d1d2683bb0c..5799d7287e0 100644 --- a/addons/purchase/stock.py +++ b/addons/purchase/stock.py @@ -151,6 +151,6 @@ class stock_warehouse(osv.osv): def change_route(self, cr, uid, ids, warehouse, new_reception_step=False, new_delivery_step=False, context=None): res = super(stock_warehouse, self).change_route(cr, uid, ids, warehouse, new_reception_step=new_reception_step, new_delivery_step=new_delivery_step, context=context) - if warehouse.wh_input_stock_loc_id != warehouse.buy_pull_rule_id.id.location_id: - self.pool.get('procurement.rule').write(cr, uid, warehouse.buy_pull_rule_id.id, {'location_id': warehouse.wh_input_stock_loc_id.id}, context=context) + if warehouse.wh_input_stock_loc_id != warehouse.buy_pull_id.id.location_id: + self.pool.get('procurement.rule').write(cr, uid, warehouse.buy_pull_id.id, {'location_id': warehouse.wh_input_stock_loc_id.id}, context=context) return res